本文整理汇总了PHP中AllTests::addTestFile方法的典型用法代码示例。如果您正苦于以下问题:PHP AllTests::addTestFile方法的具体用法?PHP AllTests::addTestFile怎么用?PHP AllTests::addTestFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AllTests
的用法示例。
在下文中一共展示了AllTests::addTestFile方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: suite
/**
* TestSuite
*/
public static function suite()
{
$suite = new AllTests('PHPUnit');
$base = dirname(__FILE__);
$files = sfFinder::type('file')->name('*Test.php')->in(array(DIR . '/plugins/sfPhpunitPlugin/test', $base . '/unit', $base . '/functional'));
foreach ($files as $file) {
$suite->addTestFile($file);
}
return $suite;
}
示例2: suite
/**
* TestSuite
*/
public static function suite()
{
$suite = new AllTests('EasyFinance');
$base = dirname(__FILE__);
$files = sfFinder::type('file')->name('*Test.php')->in(array($base . '/unit', $base . '/functional'));
$suite->addTest(EasyFinance_Unit_AllTests::suite());
foreach ($files as $file) {
$suite->addTestFile($file);
}
return $suite;
}
示例3: suite
public static function suite()
{
$suite = new AllTests();
$tdir = dirname(__FILE__);
$suite->addTestFile($tdir . '/BookmarkTest.php');
$suite->addTestFile($tdir . '/Bookmark2TagTest.php');
$suite->addTestFile($tdir . '/Tag2TagTest.php');
$suite->addTestFile($tdir . '/TagsCacheTest.php');
$suite->addTestFile($tdir . '/CommonDescriptionTest.php');
$suite->addTestFile($tdir . '/SearchHistoryTest.php');
$suite->addTestFile($tdir . '/TagTest.php');
$suite->addTestFile($tdir . '/VoteTest.php');
$suite->addTestFile($tdir . '/UserTest.php');
$suite->addTestFile($tdir . '/Api/ExportCsvTest.php');
$suite->addTestFile($tdir . '/Api/OpenSearchTest.php');
$suite->addTestFile($tdir . '/Api/PostsAddTest.php');
$suite->addTestFile($tdir . '/Api/PostsDeleteTest.php');
$suite->addTestFile($tdir . '/Api/PostsUpdateTest.php');
return $suite;
}