/** * @param string $relativePath * @param string[] $ignoreCallback * @return PHPUnit_Framework_TestSuite */ public static function GetSuite($relativePath, $ignoreCallback = array()) { $testDirectory = ROOT_DIR . $relativePath; $tests = TestHelper::GetTests($testDirectory, $ignoreCallback); $suite = new PHPUnit_Framework_TestSuite(); foreach ($tests as $test) { $test->AddToSuite($suite, $testDirectory); } return $suite; }