Added Yiistrap
This commit is contained in:
14
www/protected/extensions/bootstrap/tests/_bootstrap.php
Normal file
14
www/protected/extensions/bootstrap/tests/_bootstrap.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// This is global bootstrap for autoloading
|
||||
|
||||
// disable Yii error handling logic
|
||||
defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER', false);
|
||||
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER', false);
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
|
||||
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
|
||||
|
||||
require(__DIR__ . '/../vendor/yiisoft/yii/framework/yii.php');
|
||||
require(__DIR__ . '/unit/TbTestCase.php');
|
||||
|
||||
Yii::$enableIncludePath = false;
|
||||
Reference in New Issue
Block a user