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
597 B
23 lines
597 B
13 years ago
|
<?php
|
||
|
|
||
11 years ago
|
// 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);
|
||
|
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
|
||
|
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
|
||
|
|
||
11 years ago
|
// require composer autoloader if available
|
||
10 years ago
|
$composerAutoload = __DIR__ . '/../vendor/autoload.php';
|
||
11 years ago
|
if (is_file($composerAutoload)) {
|
||
11 years ago
|
require_once($composerAutoload);
|
||
10 years ago
|
} else {
|
||
10 years ago
|
require_once(__DIR__ . '/../../../autoload.php');
|
||
11 years ago
|
}
|
||
10 years ago
|
require_once(__DIR__ . '/../framework/Yii.php');
|
||
13 years ago
|
|
||
|
Yii::setAlias('@yiiunit', __DIR__);
|
||
|
|
||
12 years ago
|
require_once(__DIR__ . '/TestCase.php');
|