Fix: read the php-code-coverage 14 --coverage-php array format - #38
Fix: read the php-code-coverage 14 --coverage-php array format#38joshdaugherty wants to merge 1 commit into
--coverage-php array format#38Conversation
|
Independently reproduced and verified this against Without the patch — dies exactly where you describe: With the patch applied, same command, same tree: The The For whatever it is worth to prioritisation: this blocks |
|
hope we can merge this fix asap 👍 |
|
Confirming this fixes it, on pest 5.0.3 / pest-plugin-mutate 5.0.0 / php-code-coverage 14.2.4. Please merge! |
MutationTestRunner::run()reads the--coverage-phpreport withrequireand calls->getData()on it. Sincephpunit/php-code-coverage14 that file returns an array, so every--mutaterun on Pest 5 aborts withCall to a member function getData() on array.Its
codeCoverageentry is keyed relative tobasePath, so those keys need rebasing too, or--covered-onlyreports0 Mutations for 0 Files createdand exits 0. Same handling core already has inPest\Plugins\Tia\CoverageMerger; the object form keeps the old path.Fixes pestphp/pest#1790