You are here

protected function PHPUnit_Framework_TestCase::checkRequirements in Zircon Profile 8

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

@since Method available since Release 3.6.0

1 call to PHPUnit_Framework_TestCase::checkRequirements()
PHPUnit_Framework_TestCase::runBare in vendor/phpunit/phpunit/src/Framework/TestCase.php
Runs the bare test sequence.

File

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

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

protected function checkRequirements() {
  if (!$this->name || !method_exists($this, $this->name)) {
    return;
  }
  $missingRequirements = PHPUnit_Util_Test::getMissingRequirements(get_class($this), $this->name);
  if (!empty($missingRequirements)) {
    $this
      ->markTestSkipped(implode(PHP_EOL, $missingRequirements));
  }
}