alltube/tests/bootstrap.php

19 lines
362 B
PHP
Raw Permalink Normal View History

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