Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Inheritance" between traits is not considered #1055

Closed
sebastianbergmann opened this issue Dec 12, 2024 · 1 comment
Closed

"Inheritance" between traits is not considered #1055

sebastianbergmann opened this issue Dec 12, 2024 · 1 comment
Assignees
Labels

Comments

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Dec 12, 2024

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.

@sebastianbergmann
Copy link
Owner Author

Turned out that traits were not considered at all before a0adc21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant