Source for file runtests.php

Documentation is available at runtests.php

  1. <?php
  2. define('TEST_RUNNING',TRUE);
  3.  
  4. require_once 'config.php';
  5.  
  6. class AllTests extends GroupTest {
  7.  
  8.     function AllTests({
  9.         $this->GroupTest('All PHPUTF8 Tests');
  10.         $this->loadGroups();
  11.     }
  12.  
  13.     function loadGroups({
  14.         $path dirname(__FILE__).'/cases';
  15.         if $d opendir($path) ) {
  16.             while (($file readdir($d)) !== false{
  17.                 if is_file($path.'/'.$file) ) {
  18.                     $farray explode('.',$file);
  19.                     if $farray[1== 'test' {
  20.                         $this->AddTestFile($path.'/'.$file);
  21.                     }
  22.                 }
  23.             }
  24.             closedir($d);
  25.         }
  26.     }
  27. }
  28. /**
  29. * Run the tests
  30. */
  31. $test &new AllTests();
  32. $test->run(getTestReporter());

Documentation generated on Thu, 08 Jan 2009 17:48:27 +0100 by phpDocumentor 1.4.0a2