- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Coverage calculation issue #794
Comments
A lot has changed in php-code-coverage ^9. For instance, we no longer work around bugs etc. in the extensions that are used to collect code coverage data. PHPDBG is not up to par with Xdebug or PCOV. I will not invest any time in debugging issues related to PHPDBG. Do you experience the same problem with PCOV 1.0.6 or Xdebug 2.9.6? |
@sebastianbergmann will test it and keep you updated, thanks for the response |
Duplicate of #793. |
Summary
The coverage calculation seem to have changed with phpunit 9.3.x.


This leads to issue with infection testing: infection/infection#1289
Current behavior
The line is not marked as covered, even when it is. (Same code worked until 9.2.x)
How to reproduce
Source: https://github.com/chubbyphp/chubbyphp-framework-skeleton/blob/master/app/ServiceFactory/Framework/RoutesFactory.php
Test: https://github.com/chubbyphp/chubbyphp-framework-skeleton/blob/master/tests/Unit/ServiceFactory/Framework/RoutesFactoryTest.php
Run the test:
open coverage/ServiceFactory/Framework/RoutesFactory.php.html
Expected behavior
That the missing line is marked as covered.
The text was updated successfully, but these errors were encountered: