Yii2 framework backup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
607 B

13 years ago
<?php
// ensure we get report on all possible php errors
error_reporting(-1);
13 years ago
define('YII_ENABLE_ERROR_HANDLER', false);
define('YII_DEBUG', true);
define('YII_ENV', 'test');
13 years ago
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
// require composer autoloader if available
$composerAutoload = __DIR__ . '/../vendor/autoload.php';
if (is_file($composerAutoload)) {
require_once($composerAutoload);
}
require_once(__DIR__ . '/../framework/Yii.php');
Yii::setAlias('@yiiunit', __DIR__);
require_once(__DIR__ . '/compatibility.php');
require_once(__DIR__ . '/TestCase.php');