You are here

public function PHPUnit_Framework_TestResult::convertErrorsToExceptions in Zircon Profile 8

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

Enables or disables the error-to-exception conversion.

@since Method available since Release 3.2.14

Parameters

bool $flag:

Throws

PHPUnit_Framework_Exception

File

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

Class

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

Code

public function convertErrorsToExceptions($flag) {
  if (!is_bool($flag)) {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
  }
  $this->convertErrorsToExceptions = $flag;
}