public function setScore(test\score $score = null)
{
$this->score = $score ?: new test\score();
return $this;
}
public function run(atoum\test $test) { $currentTestMethod = $test->getCurrentMethod(); if ($currentTestMethod !== null) { $testScore = $test->getScore(); $test->setScore($this->score->reset())->runTestMethod($test->getCurrentMethod())->setScore($testScore); } return $this; }