File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3681,6 +3681,7 @@ public function markTestAs(
36813681
36823682 $ time = $ time ?? $ this ->getTimer ($ file_name );
36833683 $ this ->record ($ suite , 'execution_time ' , $ time );
3684+ $ formatted_time = number_format ($ time , 4 , '. ' , '' );
36843685
36853686 $ escaped_details = htmlspecialchars ($ details , ENT_QUOTES , 'UTF-8 ' );
36863687 $ escaped_details = preg_replace_callback ('/[\0-\x08\x0B\x0C\x0E-\x1F]/ ' , function ($ c ) {
@@ -3689,7 +3690,7 @@ public function markTestAs(
36893690 $ escaped_message = htmlspecialchars ($ message , ENT_QUOTES , 'UTF-8 ' );
36903691
36913692 $ escaped_test_name = htmlspecialchars ($ file_name . ' ( ' . $ test_name . ') ' , ENT_QUOTES );
3692- $ this ->rootSuite ['files ' ][$ file_name ]['xml ' ] = "<testcase name=' $ escaped_test_name' time=' $ time '> \n" ;
3693+ $ this ->rootSuite ['files ' ][$ file_name ]['xml ' ] = "<testcase name=' $ escaped_test_name' time=' $ formatted_time '> \n" ;
36933694
36943695 if (is_array ($ type )) {
36953696 $ output_type = $ type [0 ] . 'ED ' ;
@@ -3734,7 +3735,7 @@ private function getTimer(string $file_name)
37343735 }
37353736
37363737 if (isset ($ this ->rootSuite ['files ' ][$ file_name ]['total ' ])) {
3737- return number_format ( $ this ->rootSuite ['files ' ][$ file_name ]['total ' ], 4 ) ;
3738+ return $ this ->rootSuite ['files ' ][$ file_name ]['total ' ];
37383739 }
37393740
37403741 return 0 ;
You can’t perform that action at this time.
0 commit comments