mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
取消APP_AUTO_RUN常量 调整单元测试入口文件
This commit is contained in:
@@ -15,8 +15,6 @@ $_SERVER['REQUEST_METHOD'] = 'GET';
|
||||
define('TEST_PATH', __DIR__ . '/');
|
||||
// 定义项目路径
|
||||
define('APP_PATH', __DIR__ . '/application/');
|
||||
// 关闭应用自动执行
|
||||
define('APP_AUTO_RUN', false);
|
||||
// 加载框架引导文件
|
||||
require __DIR__ . '/../start.php';
|
||||
// 加载框架基础文件
|
||||
require __DIR__ . '/../base.php';
|
||||
\think\Loader::addNamespace('tests', TEST_PATH);
|
||||
|
||||
Reference in New Issue
Block a user