You are here

protected function PHPUnit_Framework_TestCase::setUseErrorHandlerFromAnnotation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::setUseErrorHandlerFromAnnotation()

@since Method available since Release 3.4.0

1 call to PHPUnit_Framework_TestCase::setUseErrorHandlerFromAnnotation()
PHPUnit_Framework_TestCase::run in vendor/phpunit/phpunit/src/Framework/TestCase.php
Runs the test case and collects the results in a TestResult object. If no TestResult object is passed a new one will be created.

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 512

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

protected function setUseErrorHandlerFromAnnotation() {
  try {
    $useErrorHandler = PHPUnit_Util_Test::getErrorHandlerSettings(get_class($this), $this->name);
    if ($useErrorHandler !== null) {
      $this
        ->setUseErrorHandler($useErrorHandler);
    }
  } catch (ReflectionException $e) {
  }
}