Implicitly include (abstract) parent class with #[CoversClass]
and #[UsesClass]
attributes
#5733
Labels
feature/code-coverage
Issues related to code coverage (but not php-code-coverage)
feature/metadata
Issues related to attributes and annotations
type/enhancement
A new idea that should be implemented
Milestone
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.
The text was updated successfully, but these errors were encountered: