mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
取消 APP_DEBUG 常量 改为 App::$debug 属性获取 设置调试模式 改为 app_debug 配置参数 在应用配置文件中设置
This commit is contained in:
@@ -32,7 +32,7 @@ return [
|
||||
// 数据库表前缀
|
||||
'prefix' => '',
|
||||
// 数据库调试模式
|
||||
'debug' => APP_DEBUG,
|
||||
'debug' => true,
|
||||
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
||||
'deploy' => 0,
|
||||
// 数据库读写是否分离 主从式有效
|
||||
|
||||
@@ -15,8 +15,6 @@ $_SERVER['REQUEST_METHOD'] = 'GET';
|
||||
define('TEST_PATH', __DIR__ . '/');
|
||||
// 定义项目路径
|
||||
define('APP_PATH', __DIR__ . '/application/');
|
||||
// 开启调试模式
|
||||
define('APP_DEBUG', true);
|
||||
// 关闭应用自动执行
|
||||
define('APP_AUTO_RUN', false);
|
||||
// 加载框架引导文件
|
||||
|
||||
@@ -34,7 +34,6 @@ class baseTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertNotEmpty(TEMP_PATH);
|
||||
$this->assertNotEmpty(VENDOR_PATH);
|
||||
$this->assertNotEmpty(EXT);
|
||||
$this->assertTrue(is_bool(APP_DEBUG));
|
||||
$this->assertNotEmpty(ENV_PREFIX);
|
||||
$this->assertTrue(is_bool(IS_API));
|
||||
$this->assertNotEmpty(APP_MODE);
|
||||
|
||||
Reference in New Issue
Block a user