Replace @covers and @coversDefaultClass annotations with #[CoversFunction()] and #[CoversClass()] attributes

Created on 8 May 2024, 9 months ago
Updated 28 June 2024, 7 months ago

Problem/Motivation

Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12.

Proposed resolution

In this issue, replace @covers and @coversDefaultClass annotations with #[CoversFunction()] and #[CoversClass()] attributes.

Use the Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector Rector Rule as a starting point.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Closed: won't fix

Version

11.0 🔥

Component
PHPUnit 

Last updated 1 day ago

Created by

🇦🇺Australia mstrelan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024