Skip to content

Coverage Coverage reports class that isn't coverage as opposed to method, even where method is known #1077

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

Open
DeveloperRob opened this issue May 6, 2025 · 0 comments

Comments

@DeveloperRob
Copy link

This might be intended / by design; however I can't see any previous reports where this has been confirmed as the intended behaviour

When an UnintentionallyCoveredCodeException exception is thrown in {performUnintentionallyCoveredCodeCheck}, the message is something like this:

- Foo
- Bar

However when the check is done, $tmp is an array in the format (Class, Method) - the returned array ($processed) is generated from $tmp[0] only. Could this be changed to implode("::", $tmp) so the output would be:

- Foo::functionA
- Foo::functionB
- Bar::functionZ

This request comes because I use CoversMethod / UsesMethod in PHPUnit - so having the method information would make finding what I have missed a lot easier.

If you are happy for the change to be made, I am happy to provide a PR with tests if required.

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

No branches or pull requests

1 participant