-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Implicitly include (abstract) parent class with #[CoversClass] and #[UsesClass] attributes #5733
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/metadataIssues related to attributes and annotationsIssues related to attributes and annotationstype/enhancementA new idea that should be implementedA new idea that should be implemented
Milestone
Description
Code Coverage: when I'm testing a concrete class that extends an abstract base class, I have to create annotations for both.
Since it's technically not possible to test a subclass in isolation from its base class, PHPUnit should not force me to list the abstract base class (either in CoversClass or UsesClass) explicitly. That's an implementation detail that PHPUnit could implicitly assume.
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/metadataIssues related to attributes and annotationsIssues related to attributes and annotationstype/enhancementA new idea that should be implementedA new idea that should be implemented