/**
* @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;
}