File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3386,6 +3386,7 @@ public function markTestAs(
33863386
33873387 $ time = $ time ?? $ this ->getTimer ($ file_name );
33883388 $ this ->record ($ suite , 'execution_time ' , $ time );
3389+ $ formatted_time = number_format ($ time , 4 , '. ' , '' );
33893390
33903391 $ escaped_details = htmlspecialchars ($ details , ENT_QUOTES , 'UTF-8 ' );
33913392 $ escaped_details = preg_replace_callback ('/[\0-\x08\x0B\x0C\x0E-\x1F]/ ' , function ($ c ) {
@@ -3394,7 +3395,7 @@ public function markTestAs(
33943395 $ escaped_message = htmlspecialchars ($ message , ENT_QUOTES , 'UTF-8 ' );
33953396
33963397 $ escaped_test_name = htmlspecialchars ($ file_name . ' ( ' . $ test_name . ') ' , ENT_QUOTES );
3397- $ this ->rootSuite ['files ' ][$ file_name ]['xml ' ] = "<testcase name=' $ escaped_test_name' time=' $ time '> \n" ;
3398+ $ this ->rootSuite ['files ' ][$ file_name ]['xml ' ] = "<testcase name=' $ escaped_test_name' time=' $ formatted_time '> \n" ;
33983399
33993400 if (is_array ($ type )) {
34003401 $ output_type = $ type [0 ] . 'ED ' ;
@@ -3439,7 +3440,7 @@ private function getTimer(string $file_name)
34393440 }
34403441
34413442 if (isset ($ this ->rootSuite ['files ' ][$ file_name ]['total ' ])) {
3442- return number_format ( $ this ->rootSuite ['files ' ][$ file_name ]['total ' ], 4 ) ;
3443+ return $ this ->rootSuite ['files ' ][$ file_name ]['total ' ];
34433444 }
34443445
34453446 return 0 ;
You can’t perform that action at this time.
0 commit comments