diff --git a/module/tutorial/test/lib/model.class.php b/module/tutorial/test/lib/model.class.php new file mode 100644 index 0000000000..4810ab7e1b --- /dev/null +++ b/module/tutorial/test/lib/model.class.php @@ -0,0 +1,23 @@ +invokeArgs('getColumn', []); + if(dao::isError()) return dao::getError(); + return $result; + } +} diff --git a/module/tutorial/test/model/getcolumn.php b/module/tutorial/test/model/getcolumn.php new file mode 100755 index 0000000000..1f6034c204 --- /dev/null +++ b/module/tutorial/test/model/getcolumn.php @@ -0,0 +1,30 @@ +#!/usr/bin/env php +getColumnTest())) && p() && e('object'); // 步骤1:验证返回值类型 +r($tutorialTest->getColumnTest()) && p('id') && e('1'); // 步骤2:验证id属性 +r($tutorialTest->getColumnTest()) && p('type') && e('backlog'); // 步骤3:验证type属性 +r($tutorialTest->getColumnTest()) && p('name') && e('Backlog'); // 步骤4:验证name属性 +r($tutorialTest->getColumnTest()) && p('limit') && e('-1'); // 步骤5:验证limit属性 \ No newline at end of file