public function getMethodPhpVersions($testMethodName = null)
{
$versions = array();
$classVersions = $this->getClassPhpVersions();
if ($testMethodName === null) {
foreach ($this->testMethods as $testMethodName => $annotations) {
if (isset($annotations['php']) === false) {
$versions[$testMethodName] = $classVersions;
} else {
$versions[$testMethodName] = array_merge($classVersions, $annotations['php']);
}
}
} else {
if (isset($this->checkMethod($testMethodName)->testMethods[$testMethodName]['php']) === false) {
$versions = $classVersions;
} else {
$versions = array_merge($classVersions, $this->testMethods[$testMethodName]['php']);
}
}
return $versions;
}