home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / xamp / xampp-win32.exe / xampp / testsuite.php < prev    next >
Encoding:
PHP Script  |  2004-10-01  |  592 b   |  25 lines

  1. <?php
  2.  
  3. require_once('PEAR.php');
  4.  
  5. class TC {
  6.     function runTest($name){
  7.         $test = strToLower($name);
  8.         include_once("test_$test.php");
  9.         echo "# Starting unit test for $name:\n";
  10.         $tc = &new PhpUnit_TestSuite('File_Passwd'.($name!='File_Passwd' ? '_'.$name : '').'Test');
  11.         $rs = PHPUnit::run($tc);
  12.         echo $rs->toString() . "\n";
  13.         flush();
  14.     }
  15. }
  16. echo "\n";
  17. TC::runTest('File_Passwd');
  18. TC::runTest('Common');
  19. TC::runTest('Smb');
  20. TC::runTest('Cvs');
  21. TC::runTest('Unix');
  22. TC::runTest('Authbasic');
  23. TC::runTest('Authdigest');
  24. TC::runTest('Custom');
  25. ?>