Phpunit things

This commit is contained in:
bzick
2017-04-22 16:25:04 +03:00
parent 66d9201a61
commit 4666fdced5
3 changed files with 9 additions and 4 deletions

View File

@ -9,4 +9,8 @@ require_once FENOM_RESOURCES . "/actions.php";
require_once __DIR__ . "/TestCase.php";
require_once __DIR__ . "/tools.php";
ini_set('date.timezone', 'Europe/Moscow');
ini_set('date.timezone', 'Europe/Moscow');
if(!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) {
class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
}