修改单元测试命名空间等

Changes to be committed:
	modified:   tests/framework/application/index/controller/indexTest.php
	modified:   tests/framework/thinkphp/library/think/cache/driver/apcTest.php
	new file:   tests/framework/thinkphp/library/think/cache/driver/cache_test_case.php
	modified:   tests/mock.php
	modified:   thinkphp/library/think/cache/driver/apc.php
	modified:   thinkphp/start.php
This commit is contained in:
simon
2015-12-21 01:26:35 -08:00
committed by 7IN0SAN9
parent a71ed560de
commit f726fbf6d2
2 changed files with 4 additions and 2 deletions

View File

@@ -25,7 +25,9 @@ class Apc
'prefix' => '',
'length' => 0,
];
/*****************************
需要支持apc_cli模式
******************************/
/**
* 架构函数
*

View File

@@ -46,6 +46,6 @@ if (APP_HOOK && isset($mode['tags'])) {
if ('sae' != APP_MODE && is_file(APP_PATH . 'build.php')) {
Create::build(include APP_PATH . 'build.php');
}
Loader::addNamespace('tests',TEST_PATH);
// 执行应用
!IN_UNIT_TEST && App::run();