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

Issue with faulty line coverage #12

Closed
bolmstedt opened this issue Apr 24, 2019 · 1 comment
Closed

Issue with faulty line coverage #12

bolmstedt opened this issue Apr 24, 2019 · 1 comment
Assignees

Comments

@bolmstedt
Copy link

Hi, I noticed something strange when running PHPUnit in a new repository, I got reports that tests were risky because they executed methods that they in reality didn't, because of me using beStrictAboutCoversAnnotation.

When I ran it multiple times, it displayed different methods not being covered by @covers annotations as a result of PHPUnit triggering the tests that were reported risky first.

I think the issue might be with the clear method, but that's just a wild guess after looking at the PHPUnit coverage driver for PCOV.

A minimal repository recreating my issue can be found here.

@krakjoe krakjoe self-assigned this May 5, 2019
@krakjoe krakjoe mentioned this issue May 5, 2019
@krakjoe krakjoe closed this as completed in b161c9f May 5, 2019
@krakjoe
Copy link
Owner

krakjoe commented May 5, 2019

That's a really horrible bug ... thanks for the report ...

The notification for this was lost among a sea of emails, until 20 minutes ago (I just happened to notice this on github somehow) ... sorry about the delay ...

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

2 participants