Problem/Motivation
@requires externalCommand
is not a supported syntax in PHPUnit 10, and its parser no longer processes it.
The valid types of @requires are describe here, https://docs.phpunit.de/en/10.0/annotations.html#requires.
We can no longer rely on PHPUnit internal Test::parseTestMethodAnnotations()
method (which is no longer existing BTW), nor on its new Metadata API, to fetch this information.
Steps to reproduce
Run a build test with PHPUnit 10.
Proposed resolution
My suggestion would be to replace @requires externalCommand
annotation with a static method to be implemented in the concrete tests.