From f726fbf6d260d8c1c1ecb8768b9228e64e5adff1 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 21 Dec 2015 01:26:35 -0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4=E7=AD=89=20=20Cha?= =?UTF-8?q?nges=20to=20be=20committed:=20=09modified:=20=20=20tests/framew?= =?UTF-8?q?ork/application/index/controller/indexTest.php=20=09modified:?= =?UTF-8?q?=20=20=20tests/framework/thinkphp/library/think/cache/driver/ap?= =?UTF-8?q?cTest.php=20=09new=20file:=20=20=20tests/framework/thinkphp/lib?= =?UTF-8?q?rary/think/cache/driver/cache=5Ftest=5Fcase.php=20=09modified:?= =?UTF-8?q?=20=20=20tests/mock.php=20=09modified:=20=20=20thinkphp/library?= =?UTF-8?q?/think/cache/driver/apc.php=20=09modified:=20=20=20thinkphp/sta?= =?UTF-8?q?rt.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/apc.php | 4 +++- start.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/library/think/cache/driver/apc.php b/library/think/cache/driver/apc.php index 522b01c5..eb4a7a38 100644 --- a/library/think/cache/driver/apc.php +++ b/library/think/cache/driver/apc.php @@ -25,7 +25,9 @@ class Apc 'prefix' => '', 'length' => 0, ]; - + /***************************** + 需要支持apc_cli模式 + ******************************/ /** * 架构函数 * diff --git a/start.php b/start.php index 491ba596..1d73987b 100644 --- a/start.php +++ b/start.php @@ -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();