alltube/tests/bootstrap.php

19 lines
362 B
PHP
Raw Permalink Normal View History

2017-01-16 16:19:19 +00:00
<?php
2017-01-16 16:19:19 +00:00
/**
2017-01-16 16:31:20 +00:00
* File used to bootstrap tests.
2017-01-16 16:19:19 +00:00
*/
use phpmock\mockery\PHPMockery;
2017-01-16 16:19:19 +00:00
// Composer autoload.
require_once __DIR__ . '/../vendor/autoload.php';
2017-01-16 16:19:19 +00:00
2020-05-13 19:33:05 +00:00
ini_set('session.use_cookies', '0');
2017-12-05 13:37:23 +00:00
session_cache_limiter('');
2017-01-16 16:19:19 +00:00
session_start();
2017-05-02 15:04:55 +00:00
// See https://bugs.php.net/bug.php?id=68541
PHPMockery::define('Alltube', 'popen');
PHPMockery::define('Alltube', 'fopen');