summaryrefslogtreecommitdiff
path: root/inc/parser/tests/alltests.all.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/tests/alltests.all.php')
-rw-r--r--inc/parser/tests/alltests.all.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/inc/parser/tests/alltests.all.php b/inc/parser/tests/alltests.all.php
new file mode 100644
index 000000000..993553eb2
--- /dev/null
+++ b/inc/parser/tests/alltests.all.php
@@ -0,0 +1,48 @@
+<?php
+/**
+* @version $Id: alltests.all.php,v 1.2 2005/03/25 21:00:22 harryf Exp $
+* @package Dokuwiki
+* @subpackage Tests
+*/
+/**
+* Init
+*/
+require_once('./testconfig.php');
+
+define("TEST_RUNNING", true);
+
+/**
+* @package Dokuwiki
+* @subpackage Tests
+*/
+class AllTests extends GroupTest {
+
+ function AllTests() {
+ $this->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());
+?>