Skip to content

"Inheritance" between traits is not considered #1055

Closed
@sebastianbergmann

Description

@sebastianbergmann

PHPUnit 11 passes code coverage targets (from "covers" and "uses" metadata) to this library as arrays with source code locations (files and line numbers). This information is provided by sebastian/code-unit and this is issue is tracked for PHPUnit 11 in that library's issue tracker here.

After #519 and starting with PHPUnit 12, PHPUnit passes code coverage targets as Target objects. These objects are then mapped by this library to source code locations (files and line numbers). This issue tracks that this functionality in this library needs to be fixed to properly consider "inheritance" between traits.

Originally reported by @InvisibleSmiley in sebastianbergmann/phpunit#6080.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions