mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Phpunit things
This commit is contained in:
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
require(__DIR__ . "/../src/Fenom.php");
|
require(__DIR__ . "/../src/Fenom.php");
|
||||||
Fenom::registerAutoload();
|
Fenom::registerAutoload();
|
||||||
|
require_once __DIR__ . "/../vendor/autoload.php";
|
||||||
|
|
||||||
|
|
||||||
|
if(!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
|
||||||
|
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
|
||||||
|
}
|
||||||
|
|
||||||
define('FENOM_RESOURCES', __DIR__ . "/resources");
|
define('FENOM_RESOURCES', __DIR__ . "/resources");
|
||||||
|
|
||||||
@ -11,6 +17,3 @@ 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');
|
|
||||||
}
|
|
Reference in New Issue
Block a user