= 0) { $this->timesRepeat = $timesRepeat; } else { throw new Exception('Illegal argument.'); } } public function countTestCases() { return $this->timesRepeat * $this->test->countTestCases(); } public function run(PHPUnit2_Framework_TestResult $result) { for ($i = 0; $i < $this->timesRepeat && !$result->shouldStop(); $i++) { $this->test->run($result); } return $result; } } ?>