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
While making my packages PHP 81 ready, I bumped into this issue:
When running infection on php 8.1 I noticed some uncovered mutants.
It turns out that the XML coverage report is missing some information and therefore cannot run the covering tests.
These lines are available on PHP 8.0.
I'm using pcov 1.0.9 on both versions for coverage.
Not sure this is the right place to report this issue. It might have to do with another package. Feel free to point me elsewhere!
Current behavior
On PHP 8.0 these lines are available for file ".phpunit.cache/xml/Dom/Traverser/Visitor/SortAttributes.php.xml"
This does not look like an issue in this library. My best guess is that PHP 8.1 generates different bytecode compared to PHP 8.0 and therefore PCOV reports different line coverage.
If at all, this would be an issue to report for PCOV. What do you think, @krakjoe?
And for @derickr it might be interesting to know whether Xdebug reports different code coverage using PHP 8.1 compared to PHP 8.0.
Summary
While making my packages PHP 81 ready, I bumped into this issue:
When running infection on php 8.1 I noticed some uncovered mutants.
It turns out that the XML coverage report is missing some information and therefore cannot run the covering tests.
These lines are available on PHP 8.0.
I'm using pcov 1.0.9 on both versions for coverage.
Not sure this is the right place to report this issue. It might have to do with another package. Feel free to point me elsewhere!
Current behavior
On PHP 8.0 these lines are available for file ".phpunit.cache/xml/Dom/Traverser/Visitor/SortAttributes.php.xml"
On PHP 8.1, it jumps from line 25 to 27.
Line 26 is missing from the XML, making infection not able to determine the tests that cover that line.
How to reproduce
Install
Run with both PHP versions:
Compare:
other files that are different and cause issues:
Expected behavior
Both files should be the same and not missing the line.
The text was updated successfully, but these errors were encountered: