/**
* Constructor.
*
* @param PHPUnit_Framework_Test $test
* @param integer $timesRepeat
* @throws InvalidArgumentException
* @access public
*/
public function __construct(PHPUnit_Framework_Test $test, $timesRepeat = 1)
{
parent::__construct($test);
if (is_integer($timesRepeat) && $timesRepeat >= 0) {
$this->timesRepeat = $timesRepeat;
} else {
throw new InvalidArgumentException('Argument 2 must be a positive integer.');
}
}