本文整理汇总了PHP中TestSuite::main方法的典型用法代码示例。如果您正苦于以下问题:PHP TestSuite::main方法的具体用法?PHP TestSuite::main怎么用?PHP TestSuite::main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestSuite
的用法示例。
在下文中一共展示了TestSuite::main方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$suite->addTestSuite('Module0001');
$suite->addTestSuite('Module0002');
$suite->addTestSuite('Redirect0001Test');
$suite->addTestSuite('SampleData0001');
$suite->addTestSuite('Acl0001Test');
$suite->addTestSuite('Acl0002Test');
$suite->addTestSuite('DoInstall');
$suite->addTestSuite('Acl0003Test');
$suite->addTestSuite('Acl0004Test');
$suite->addTestSuite('Acl0005Test');
$suite->addTestSuite('Acl0006Test');
$suite->addTestSuite('Language0001Test');
$suite->addTestSuite('Language0002Test');
$suite->addTestSuite('Cache0001Test');
$suite->addTestSuite('Security0001Test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Framework_AllTests::main') {
print "running Framework_AllTests::main()";
Framework_AllTests::main();
}
// the following section allows you to run this either from phpunit as
// phpunit.bat --bootstrap servers\configdef.php tests\testsuite.php
// or to run as a PHP Script from inside Eclipse. If you are running
// as a PHP Script, the SeleniumConfig class doesn't exist so you must import it
// and you must also run the TestSuite::main() method.
if (!class_exists('SeleniumConfig')) {
require_once 'servers/configdef.php';
TestSuite::main();
}