Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293910

'@requires externalCommand' is not parsed in PHPUnit 10

$
0
0

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.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293910

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>