public function PHPUnit_Framework_TestResult::setTimeoutForMediumTests

Sets the timeout for medium tests.

@since Method available since Release 3.6.0

Parameters

integer $timeout:

Throws

PHPUnit_Framework_Exception

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php, line 932

Class

PHPUnit_Framework_TestResult
A TestResult collects the results of executing a test case.

Code

public function setTimeoutForMediumTests($timeout) {
  if (is_integer($timeout)) {
    $this->timeoutForMediumTests = $timeout;
  }
  else {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
  }
}