[meta] Define a Rector rule to convert test annotations to attributes

Created on 9 May 2024, 8 months ago
Updated 25 May 2024, 7 months ago

Problem/Motivation

In PHPUnit 11, we have to replace test annotations with attributes. As noticed in #3417066-120: Upgrade PHPUnit to 10, drop Symfony PHPUnit-bridge dependency ,

we can't mix PHPUnit attributes and annotations [in a single file], we will have to convert them all at once unfortunately

with thousands of test classes in Drupal, we should try to automate the conversion, in a way that a script can be executed on a file and convert it end-to-end.

Rector can help, but we need an overall Rector script that will do all the changes necessary in a go - we should convert by files or group of files, and not by rule/annotation.

Listing some findings for the Rector rule, will document here along

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
PHPUnit 

Last updated about 21 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.71.5 2024