]> projects.mako.cc - scuttle/blob - includes/utf8/tests/runtests.php
- Override privacy status on bookmark file import, if specified (i.e. Delicious)
[scuttle] / includes / utf8 / tests / 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());

Benjamin Mako Hill || Want to submit a patch?