File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments