You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is an completely empty file with only one line without a trailing linebreak in your coverage folder, the coverage can't be created, because the value for $linesOfCode after counting \n is 0, whereas the calculated amount of comments is 1 and results in an exception of type SebastianBergmann\LinesOfCode\NegativeValueException.
Fatal error: Uncaught SebastianBergmann\LinesOfCode\NegativeValueException: $nonCommentLinesOfCode must not be negative in /.../vendor/phpunit/phpunit/src/TextUI/Command.php on line 103
PHPUnit\TextUI\Exception: $nonCommentLinesOfCode must not be negative in /.../vendor/phpunit/phpunit/src/TextUI/Command.php on line 103
Call Stack:
0.0006 411104 1. {main}() /.../vendor/phpunit/phpunit/phpunit:0
0.0162 1110472 2. PHPUnit\TextUI\Command::main() /var/ftproot/www/symfony-tests/vendor/phpunit/phpunit/phpunit:61
We've had no issues with PHPUnit 8.* and below with empty files.
The text was updated successfully, but these errors were encountered:
If there is an
completely emptyfile with only one line without a trailing linebreak in your coverage folder, the coverage can't be created, because the value for $linesOfCode after counting\n
is 0, whereas the calculated amount of comments is 1 and results in an exception of type SebastianBergmann\LinesOfCode\NegativeValueException.We've had no issues with PHPUnit 8.* and below with empty files.
The text was updated successfully, but these errors were encountered: