public function PHPUnit_Extensions_RepeatedTest::__construct

Constructor.

Parameters

PHPUnit_Framework_Test $test:

integer $timesRepeat:

mixed $filter:

array $groups:

array $excludeGroups:

boolean $processIsolation:

Throws

PHPUnit_Framework_Exception

Overrides PHPUnit_Extensions_TestDecorator::__construct

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Extensions/RepeatedTest.php, line 93

Class

PHPUnit_Extensions_RepeatedTest
A Decorator that runs a test repeatedly.

Code

public function __construct(PHPUnit_Framework_Test $test, $timesRepeat = 1, $filter = FALSE, array $groups = array(), array $excludeGroups = array(), $processIsolation = FALSE) {
  parent::__construct($test);
  if (is_integer($timesRepeat) && $timesRepeat >= 0) {
    $this->timesRepeat = $timesRepeat;
  }
  else {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'positive integer');
  }
  $this->filter = $filter;
  $this->groups = $groups;
  $this->excludeGroups = $excludeGroups;
  $this->processIsolation = $processIsolation;
}