bootstrap.php 367 Bytes
Newer Older
w  
Qiang Xue committed
1 2
<?php

3 4 5
// ensure we get report on all possible php errors
error_reporting(-1);

w  
Qiang Xue committed
6 7 8 9 10
define('YII_ENABLE_ERROR_HANDLER', false);
define('YII_DEBUG', true);
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
$_SERVER['SCRIPT_FILENAME'] = __FILE__;

Qiang Xue committed
11
require_once(__DIR__ . '/../../framework/yii/Yii.php');
Qiang Xue committed
12 13 14

Yii::setAlias('@yiiunit', __DIR__);

Qiang Xue committed
15
require_once(__DIR__ . '/TestCase.php');