/**
* Checks whether required external commands are available per test class.
*
* @throws \PHPUnit\Framework\SkippedTestError
* Thrown when the requirements are not met, and this test should be
* skipped. Callers should not catch this exception.
*/
private static function checkClassCommandRequirements() { $annotations = Test::
parseTestMethodAnnotations(static::
class);
if (!
empty($annotations['class'
]['requires'
])) { static::
checkExternalCommandRequirements($annotations['class'
]['requires'
]);
} } /**
* Checks whether required external commands are available per method.
*
* @throws \PHPUnit\Framework\SkippedTestError
* Thrown when the requirements are not met, and this test should be
* skipped. Callers should not catch this exception.
*/
private static function checkMethodCommandRequirements($name) {