'@requires externalCommand' is not parsed in PHPUnit 10

Created on 23 May 2023, about 1 year ago
Updated 10 September 2023, 10 months ago

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

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 22 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024