You are here

public function PHPUnit_Framework_TestResult::setTimeoutForSmallTests in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestResult.php \PHPUnit_Framework_TestResult::setTimeoutForSmallTests()

Sets the timeout for small tests.

@since Method available since Release 3.6.0

Parameters

int $timeout:

Throws

PHPUnit_Framework_Exception

File

vendor/phpunit/phpunit/src/Framework/TestResult.php, line 1001

Class

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

Code

public function setTimeoutForSmallTests($timeout) {
  if (!is_integer($timeout)) {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
  }
  $this->timeoutForSmallTests = $timeout;
}