@covers ::<!public> annotation broken #4478
Labels
feature/code-coverage
Issues related to code coverage (but not php-code-coverage)
type/bug
Something is broken
Summary
Using the
@covers ::<!public>
annotation on an exception causes a PHP fatal error. Presumably other variations of this annotation are broken as well.Current behavior
How to reproduce
Trying to test the following code with coverage produces the error.
Run PHPUnit with these arguments:
It appears PHPUnit is trying to find the source file of the final private method
\Exception::__clone
, the correct behaviour I believe is to ignore parent methods.Expected behavior
9.0 exhibits the expected behaviour.
The text was updated successfully, but these errors were encountered: