GroupTest('All Dokuwiki PHP Tests'); $this->loadGroups(); } function loadGroups() { if ( $d = opendir('.') ) { while (($file = readdir($d)) !== false) { if ( is_file('./'.$file) ) { $farray = explode('.',$file); if ( $farray[1] == 'group' ) { $classname = ucfirst($farray[0]).'GroupTest'; require_once './'.$file; $this->AddTestCase(new $classname); } } } closedir($d); } } } /** * Run the tests */ $test = &new AllTests(); $test->run(new HtmlReporter()); ?>