diff --git a/src/Tester/MutationTestRunner.php b/src/Tester/MutationTestRunner.php index 0555b74..9f57554 100644 --- a/src/Tester/MutationTestRunner.php +++ b/src/Tester/MutationTestRunner.php @@ -99,6 +99,7 @@ public function run(): int return 1; } + $this->clearCacheIfPluginVersionChanged(); $mutationSuite = MutationSuite::instance(); @@ -108,7 +109,6 @@ public function run(): int /** @var CodeCoverage $codeCoverage */ $codeCoverage = require $reportPath; - unlink($reportPath); $coveredLines = array_map(fn (array $lines): array => array_filter($lines, fn (?array $tests): bool => $tests !== [] && $tests !== null), $codeCoverage->getData()->lineCoverage()); $coveredLines = array_filter($coveredLines, fn (array $lines): bool => $lines !== []);