diff options
Diffstat (limited to 'test/all-tests.php')
-rw-r--r-- | test/all-tests.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/all-tests.php b/test/all-tests.php new file mode 100644 index 0000000..1b342e9 --- /dev/null +++ b/test/all-tests.php @@ -0,0 +1,13 @@ +<?php + +function run_all_tests($base) { + foreach (glob("$base/*Test.php") as $file) { + require_once $file; + } + foreach (glob("$base/*", GLOB_ONLYDIR) as $dir) { + run_all_tests($dir); + } +} + +run_all_tests('.'); + |