- Issue created by @mondrake
PHPUnit introduced attributes in place of annotations to define test metadata. Annotations are deprecated. Their support is removed in PHPUnit 12.
In preparation for PHPUnit 12, 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.
Develop a rector rule, and convert all the test classes in child issues.
Active
11.0 🔥
phpunit