mirror of
https://github.com/danog/filtersbot.git
synced 2024-11-26 20:04:38 +01:00
42 lines
872 B
PHP
42 lines
872 B
PHP
<?php
|
|
/**
|
|
* This file is part of the TelegramBot package.
|
|
*
|
|
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Tests;
|
|
|
|
/*
|
|
* Set error reporting to the max level.
|
|
*/
|
|
error_reporting(-1);
|
|
|
|
/*
|
|
* Set UTC timezone.
|
|
*/
|
|
date_default_timezone_set('UTC');
|
|
|
|
$autoloader = __DIR__ . '/../vendor/autoload.php';
|
|
|
|
/*
|
|
* Check that --dev composer installation was done
|
|
*/
|
|
if (!file_exists($autoloader)) {
|
|
throw new \Exception(
|
|
'Please run "php composer.phar install --dev" in root directory '
|
|
. 'to setup unit test dependencies before running the tests'
|
|
);
|
|
}
|
|
|
|
//Include the Composer autoloader
|
|
require_once $autoloader;
|
|
|
|
/*
|
|
* Unset global variables that are no longer needed.
|
|
*/
|
|
unset($autoloader);
|