alltube/tests/bootstrap.php

21 lines
372 B
PHP
Raw Normal View History

2017-01-16 16:19:19 +00:00
<?php
/**
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
/**
2017-01-16 16:31:20 +00:00
* Composer autoload.
2017-01-16 16:19:19 +00:00
*/
require_once __DIR__.'/../vendor/autoload.php';
2017-12-05 13:37:23 +00:00
ini_set('session.use_cookies', 0);
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');