/** * Returns an array with the names of all available tests which are children of $suite * * @param ezpTestSuite $suite * @return string[] */ protected function getTests(ezpTestSuite $suite) { $tests = array(); $iterator = $suite->getIterator(); /** @var PHPUnit_Framework_TestCase $test */ foreach ($iterator as $test) { $reflectionClass = new ReflectionClass($test); $tests[] = $reflectionClass->getName() . "::" . $test->getName(); } sort($tests); return $tests; }