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

Created on 8 May 2024, about 2 months ago
Updated 28 June 2024, 4 days 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 about 2 hours 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.69.0 2024