mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修改单元测试命名空间等
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:
4
library/think/cache/driver/apc.php
vendored
4
library/think/cache/driver/apc.php
vendored
@@ -25,7 +25,9 @@ class Apc
|
|||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'length' => 0,
|
'length' => 0,
|
||||||
];
|
];
|
||||||
|
/*****************************
|
||||||
|
需要支持apc_cli模式
|
||||||
|
******************************/
|
||||||
/**
|
/**
|
||||||
* 架构函数
|
* 架构函数
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -46,6 +46,6 @@ if (APP_HOOK && isset($mode['tags'])) {
|
|||||||
if ('sae' != APP_MODE && is_file(APP_PATH . 'build.php')) {
|
if ('sae' != APP_MODE && is_file(APP_PATH . 'build.php')) {
|
||||||
Create::build(include APP_PATH . 'build.php');
|
Create::build(include APP_PATH . 'build.php');
|
||||||
}
|
}
|
||||||
|
Loader::addNamespace('tests',TEST_PATH);
|
||||||
// 执行应用
|
// 执行应用
|
||||||
!IN_UNIT_TEST && App::run();
|
!IN_UNIT_TEST && App::run();
|
||||||
|
|||||||
Reference in New Issue
Block a user