public function getTestMethods(array $tags = array())
{
$testMethods = array();
foreach (array_keys($this->testMethods) as $methodName) {
if ($this->methodIsIgnored($methodName, $tags) === false) {
$testMethods[] = $methodName;
}
}
return $testMethods;
}
/** * @param test $test * @return $this */ public function setTest(test $test) { if (null === $this->rule) { return $this; } $ruler = new ruler($this->rule); foreach ($test->getTestMethods() as $testMethod) { $isMethodIgnored = $ruler->isMethodIgnored($test, $testMethod); $test->ignoreMethod($testMethod, $isMethodIgnored); } return $this; }