From 2737983653e3c66a7413ecb0353044232a7051f2 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 5 Sep 2024 02:20:08 +0100 Subject: [PATCH] fix --- src/Tester/MutationTestRunner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 !== []);