mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
去除 IS_CGI IS_MAC NOW_TIME 常量
This commit is contained in:
@@ -38,7 +38,6 @@ class baseTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertNotEmpty(ENV_PREFIX);
|
||||
$this->assertTrue(is_bool(IS_API));
|
||||
$this->assertNotEmpty(APP_MODE);
|
||||
$this->assertTrue(!is_null(IS_CGI));
|
||||
$this->assertTrue(!is_null(IS_WIN));
|
||||
$this->assertTrue(!is_null(IS_CLI));
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ class debugTest extends \PHPUnit_Framework_TestCase
|
||||
$array = explode("array", json_encode($output));
|
||||
if (IS_WIN) {
|
||||
$this->assertEquals("(1) {\\n [\\\"key\\\"] => string(3) \\\"val\\\"\\n}\\n\\r\\n\"", end($array));
|
||||
} else if (IS_MAC) {
|
||||
} else if (strstr(PHP_OS, 'Darwin')) {
|
||||
$this->assertEquals("(1) {\\n [\\\"key\\\"] => string(3) \\\"val\\\"\\n}\\n\\n\"", end($array));
|
||||
} else {
|
||||
$this->assertEquals("(1) {\\n 'key' =>\\n string(3) \\\"val\\\"\\n}\\n\\n\"", end($array));
|
||||
|
||||
Reference in New Issue
Block a user