-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
The #[CoversClass] and #[UsesClass] attributes can no longer target traits #5798
Copy link
Copy link
Closed
Labels
feature/code-coverageIssues related to code coverage (but not php-code-coverage)Issues related to code coverage (but not php-code-coverage)feature/metadata/attributestype/bugSomething is brokenSomething is brokenversion/11Something affects PHPUnit 11Something affects PHPUnit 11
Description
Prior to PHPUnit 11.1, the #[CoversClass] and #[UsesClass] attributes could target traits. This was not intentional, which is why there were no tests covering this behaviour. This behaviour was broken while working on #5733 and this breakage was only noticed after the release: Roave/BetterReflection#1420 (comment).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature/code-coverageIssues related to code coverage (but not php-code-coverage)Issues related to code coverage (but not php-code-coverage)feature/metadata/attributestype/bugSomething is brokenSomething is brokenversion/11Something affects PHPUnit 11Something affects PHPUnit 11