From 944419fc2c45f86a72be4489a358aea001e9b490 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 26 Jul 2020 17:45:38 +0100 Subject: [PATCH] Unconditionally add testCaseId --- src/ProcessedCodeCoverageData.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ProcessedCodeCoverageData.php b/src/ProcessedCodeCoverageData.php index a6fe0fd2c..bac563828 100644 --- a/src/ProcessedCodeCoverageData.php +++ b/src/ProcessedCodeCoverageData.php @@ -69,9 +69,7 @@ public function markCodeAsExecutedByTestCase(string $testCaseId, RawCodeCoverage foreach ($executedCode->lineCoverage() as $file => $lines) { foreach ($lines as $k => $v) { if ($v === Driver::LINE_EXECUTED) { - if (empty($this->lineCoverage[$file][$k]) || !in_array($testCaseId, $this->lineCoverage[$file][$k], true)) { - $this->lineCoverage[$file][$k][] = $testCaseId; - } + $this->lineCoverage[$file][$k][] = $testCaseId; } } }