addTestFile($file_path); } } closedir($handle); } class Package_AllTests { public static function suite() { $test_suite = new PHPUnit_Framework_TestSuite(); $test_suite->setName('XETest'); $target_dirs = array("modules", "bricks", "config"); foreach($target_dirs as $target_dir) { loadDir($target_dir, $test_suite); } return $test_suite; } } ?>