protected function PHPUnit_Framework_TestCase::setRequirementsFromAnnotation

@since Method available since Release 3.6.0

1 call to PHPUnit_Framework_TestCase::setRequirementsFromAnnotation()
PHPUnit_Framework_TestCase::checkRequirements in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php
@since Method available since Release 3.6.0

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 552

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

protected function setRequirementsFromAnnotation() {
  try {
    $requirements = PHPUnit_Util_Test::getRequirements(get_class($this), $this->name);
    if (isset($requirements['PHP'])) {
      $this->required['PHP'] = $requirements['PHP'];
    }
    if (isset($requirements['PHPUnit'])) {
      $this->required['PHPUnit'] = $requirements['PHPUnit'];
    }
    if (isset($requirements['extensions'])) {
      $this->required['extensions'] = $requirements['extensions'];
    }
    if (isset($requirements['functions'])) {
      $this->required['functions'] = $requirements['functions'];
    }
  } catch (ReflectionException $e) {
  }
}