-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Annotations for ignoring code from code coverage are unintentionally ignored by default #4036
Comments
PHPUnit is not responsible for handling the |
The code in this component that handles the |
I also do not see any changes in |
I believe you :-) I am able to reproduce the issue. And I may have just found the root cause. |
This is a bug in PHPUnit itself after all: due to a mistake I made while working on #3914, the processing of annotations such as |
Funny how I just ran into this to find it fixed 3 hours ago :) However - 'ignored by default' implies I should be able to fix it by adding |
Summary
@codeCoverageIgnoreStart
annotation does not work.Current behavior
How to reproduce
https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Helpers/TypeHelper.php#L24
Expected behavior
The ignored line should not be marked as not covered.
The text was updated successfully, but these errors were encountered: