read(true, true, true); foreach ($files as $file) { $this->addTestFile($file); } } /** * Recursively adds all the files in a directory to the test suite. * * @param string $directory The directory subtree to add tests from. * @return void */ public function addTestDirectoryRecursive($directory = '.') { $Folder = new Folder($directory); $files = $Folder->tree(null, false, 'files'); foreach ($files as $file) { if (strpos($file, DS . '.') !== false) { continue; } $this->addTestFile($file); } } }