コード例 #1
0
 /**
  * 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
0
 /**
  * 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
0
 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;
 }