znt/module/common/test/model/checkmenuvarsreplaced.php

29 lines
1.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/**
*
* title=测试 commonModel::checkMenuVarsReplaced();
* timeout=0
* cid=0
*
* - 执行commonTaoTest模块的checkMenuVarsReplacedTest方法测试用例1 @public_static_method
* - 执行commonTaoTest模块的checkMenuVarsReplacedTest方法测试用例2 @no_return_type
* - 执行commonTaoTest模块的checkMenuVarsReplacedTest方法测试用例3 @no_parameters
* - 执行commonTaoTest模块的checkMenuVarsReplacedTest方法测试用例4 @has_doc_comment
* - 执行commonTaoTest模块的checkMenuVarsReplacedTest方法测试用例5 @correct_signature
*
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/tao.class.php';
su('admin');
$commonTaoTest = new commonTaoTest();
r($commonTaoTest->checkMenuVarsReplacedTest(1)) && p() && e('public_static_method');
r($commonTaoTest->checkMenuVarsReplacedTest(2)) && p() && e('no_return_type');
r($commonTaoTest->checkMenuVarsReplacedTest(3)) && p() && e('no_parameters');
r($commonTaoTest->checkMenuVarsReplacedTest(4)) && p() && e('has_doc_comment');
r($commonTaoTest->checkMenuVarsReplacedTest(5)) && p() && e('correct_signature');