* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/execution.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
/**
|
||||
|
||||
title=测试 executionModel->getExecutionQuery();
|
||||
@@ -29,7 +29,7 @@ $userquery->form->range('``');
|
||||
$userquery->gen(1);
|
||||
|
||||
$queryIdList = array(0, 1, 2, 3, 4);
|
||||
$executionTester = new executionTest();
|
||||
$executionTester = new executionModelTest();
|
||||
r($executionTester->getExecutionQueryTest($queryIdList[0])) && p() && e("(( 1 ) AND ( 1 AND t1.`status` = 'doing'))"); // 没有queryID时,获取查询执行的SQL
|
||||
r($executionTester->getExecutionQueryTest($queryIdList[1])) && p() && e("(( 1 AND t1.`name` LIKE '迭代' ) AND ( 1 AND t1.`status` = 'doing' ))"); // 有queryID时,获取查询执行的SQL
|
||||
r($executionTester->getExecutionQueryTest($queryIdList[2])) && p() && e("(( 1 AND t1.`name` LIKE '迭代' ) AND ( 1 AND t1.`status` = 'doing' ))"); // queryID不存在时,获取查询执行的SQL
|
||||
|
||||
Reference in New Issue
Block a user