X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/bce919af7b49bbd06223f79b8c37a53a3d263ff0..c7f63c8b9b12efd7b3c10b9f80cda06eaf32068f:/includes/utf8/tests/runtests.php diff --git a/includes/utf8/tests/runtests.php b/includes/utf8/tests/runtests.php new file mode 100644 index 0000000..0d59f4e --- /dev/null +++ b/includes/utf8/tests/runtests.php @@ -0,0 +1,32 @@ +GroupTest('All PHPUTF8 Tests'); + $this->loadGroups(); + } + + function loadGroups() { + $path = dirname(__FILE__).'/cases'; + if ( $d = opendir($path) ) { + while (($file = readdir($d)) !== false) { + if ( is_file($path.'/'.$file) ) { + $farray = explode('.',$file); + if ( $farray[1] == 'test' ) { + $this->AddTestFile($path.'/'.$file); + } + } + } + closedir($d); + } + } +} +/** +* Run the tests +*/ +$test = &new AllTests(); +$test->run(getTestReporter());