Returns the dependencies for a test class or method.
@since Method available since Release 3.4.0
string $className:
string $methodName:
array
public static function getDependencies($className, $methodName) {
$annotations = self::parseTestMethodAnnotations($className, $methodName);
$dependencies = array();
if (isset($annotations['class']['depends'])) {
$dependencies = $annotations['class']['depends'];
}
if (isset($annotations['method']['depends'])) {
$dependencies = array_merge($dependencies, $annotations['method']['depends']);
}
return array_unique($dependencies);
}