Runs the decorated test and collects the result in a TestResult.
PHPUnit_Framework_TestResult $result:
Overrides PHPUnit_Extensions_TestDecorator::run
public function run(PHPUnit_Framework_TestResult $result = NULL) {
if ($result === NULL) {
$result = $this
->createResult();
}
//@codingStandardsIgnoreStart
for ($i = 0; $i < $this->timesRepeat && !$result
->shouldStop(); $i++) {
//@codingStandardsIgnoreEnd
if ($this->test instanceof PHPUnit_Framework_TestSuite) {
$this->test
->run($result, $this->filter, $this->groups, $this->excludeGroups, $this->processIsolation);
}
else {
$this->test
->run($result);
}
}
return $result;
}