* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.
This commit is contained in:
@@ -17,13 +17,13 @@ cid=16792
|
||||
|
||||
// 1. 导入依赖(路径固定,不可修改)
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/instance.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. 用户登录(选择合适角色)
|
||||
su('admin');
|
||||
|
||||
// 3. 创建测试实例(变量名与模块名一致)
|
||||
$instanceTest = new instanceTest();
|
||||
$instanceTest = new instanceModelTest();
|
||||
|
||||
// 4. 准备测试数据 - 创建不同内存需求的应用对象
|
||||
$lowMemoryApp = new stdclass;
|
||||
|
||||
Reference in New Issue
Block a user