Skip to content

Commit 42aa3e6

Browse files
committed
Merge branch '3.x' into 4.x
2 parents 2b60991 + dff0a51 commit 42aa3e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Plugin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function handleOriginalArguments(array $arguments): void
162162
Analyser::analyse(
163163
array_keys($files),
164164
function (Result $result) use (&$totals): void {
165-
$path = str_replace(TestSuite::getInstance()->rootPath.'/', '', $result->file);
165+
$path = str_replace(TestSuite::getInstance()->rootPath.DIRECTORY_SEPARATOR, '', $result->file);
166166
$uncoveredLines = [];
167167
$uncoveredLinesIgnored = [];
168168

@@ -239,7 +239,6 @@ function (Result $result) use ($terminalWidth): void {
239239

240240
$exitCode = (int) ($coverage < $this->coverageMin);
241241

242-
// in seconds, with 2 decimal places
243242
$duration = number_format(microtime(true) - $startTime, 2, '.', '');
244243

245244
if ($exitCode === 1) {
@@ -256,7 +255,7 @@ function (Result $result) use ($terminalWidth): void {
256255
<div class="mx-2">
257256
<hr class="text-gray" />
258257
<div class="w-full text-right">
259-
<span class="ml-1 font-bold"><span class="text-gray">({$duration}s)</span> Total: {$totalCoverageAsString} %</span>
258+
<span class="ml-1 font-bold"><span class="text-gray">({$duration}s)</span> Total: {$totalCoverageAsString} %</span>
260259
</div>
261260
</div>
262261
HTML);

0 commit comments

Comments
 (0)