Skip to content

Conversation

@jaydiablo
Copy link
Contributor

There is an existing issue for this: #152

And some more discussion about it from the PHP_TokenStream project: sebastianbergmann/php-token-stream#28 (comment)

The fix used here comes from that comment from @edorian. Spent a good chunk of the day tracking down where the issue was, creating a couple of different tests to help dig.

Ultimately the Clover test I added is probably unnecessary, since the root of the problem ended up being in PHP_CodeCoverage_Util::getLinesToBeIgnored (which I also created a test for). I left the clover test in place though.

… class would cause the coverage report to ignore the rest of the lines in the parent method of the anonymous functions. With tests.
sebastianbergmann added a commit that referenced this pull request Jun 12, 2013
@sebastianbergmann sebastianbergmann merged commit 8d0a472 into sebastianbergmann:1.2 Jun 12, 2013
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

Successfully merging this pull request may close these issues.

2 participants