Closed mvorisek closed 9 months ago
@Slamdunk can you please have a look
This is by design: a class declaration is not considered executable.
@sebastianbergmann may I know why? Here is a usecase: https://github.com/atk4/ui/blob/5.0.0/src/Exception/ExitApplicationError.php - without this issue, we cannot tell if the class is used/covered or not.
Declarations are not relevant at runtime.
repro code:
generates zero coverage lines (which makes the file completely ignored for CodeCov).
I would expect coverage to be emit on the l3 (l9 in the screenshot below) (ie. the line where the class starts). The meaning is if the class has been included or not.