addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helper.test.php'); $helperIterator = new DirectoryIterator(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS); // The following test cases cause segfaults for me. $segfaulty = array('form.test.php', 'cache.test.php', 'session.test.php'); foreach ($helperIterator as $i => $file) { if (!$file->isDot() && !in_array($file->getFilename(), $segfaulty)) { $suite->addTestfile($file->getPathname()); } } return $suite; } }