废除IN_UNIT_TEST常量 和 View类的 parse_var参数

This commit is contained in:
thinkphp
2016-01-21 11:56:46 +08:00
parent d56babc344
commit 680aa8cd66
4 changed files with 0 additions and 6 deletions

View File

@@ -10,9 +10,6 @@
// +----------------------------------------------------------------------
// 测试入口文件
define('IN_UNIT_TEST', true);
$_SERVER['REQUEST_METHOD'] = 'GET';
// 定义项目测试基础路径

View File

@@ -44,7 +44,6 @@ class baseTest extends \PHPUnit_Framework_TestCase
$this->assertTrue(is_bool(APP_HOOK));
$this->assertNotEmpty(ENV_PREFIX);
$this->assertTrue(is_bool(IS_API));
$this->assertTrue(is_bool(IN_UNIT_TEST));
$this->assertTrue(is_bool(APP_AUTO_BUILD));
$this->assertNotEmpty(APP_MODE);
$this->assertTrue(!is_null(IS_CGI));