8000 minor #59158 [Console] Fix time display in tests (alexandre-daubois) · symfony/symfony@57c8040 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57c8040

Browse files
committed
minor #59158 [Console] Fix time display in tests (alexandre-daubois)
This PR was merged into the 7.3 branch. Discussion ---------- [Console] Fix time display in tests | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Fixes CI after #58946. Commits ------- 049bc63 [Console] Fix time display in tests
2 parents d1a3375 + 049bc63 commit 57c8040

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ public function testAnsiColorsAndEmojis()
958958
$this->assertEquals(
959959
" \033[44;37m Starting the demo... fingers crossed \033[0m\n".
960960
' 0/15 '.$progress.str_repeat($empty, 26)." 0%\n".
961-
" \xf0\x9f\x8f\x81 < 1 sec \033[44;37m 0 B \033[0m",
961+
" \xf0\x9f\x8f\x81 < 1 ms \033[44;37m 0 B \033[0m",
962962
stream_get_contents($output->getStream())
963963
);
964964
ftruncate($output->getStream(), 0);
@@ -972,7 +972,7 @@ public function testAnsiColorsAndEmojis()
972972
$this->generateOutput(
973973
" \033[44;37m Looks good to me... \033[0m\n".
974974
' 4/15 '.str_repeat($done, 7).$progress.str_repeat($empty, 19)." 26%\n".
975-
" \xf0\x9f\x8f\x81 < 1 sec \033[41;37m 97 KiB \033[0m"
975+
" \xf0\x9f\x8f\x81 < 1 ms \033[41;37m 97 KiB \033[0m"
976976
),
977977
stream_get_contents($output->getStream())
978978
);
@@ -987,7 +987,7 @@ public function testAnsiColorsAndEmojis()
987987
$this->generateOutput(
988988
" \033[44;37m Thanks, bye \033[0m\n".
989989
' 15/15 '.str_repeat($done, 28)." 100%\n".
990-
" \xf0\x9f\x8f\x81 < 1 sec \033[41;37m 195 KiB \033[0m"
990+
" \xf0\x9f\x8f\x81 < 1 ms \033[41;37m 195 KiB \033[0m"
991991
),
992992
stream_get_contents($output->getStream())
993993
);
@@ -1022,7 +1022,7 @@ public function testSetFormatWithTimes()
10221022
$bar->start();
10231023
rewind($output->getStream());
10241024
$this->assertEquals(
1025-
' 0/15 [>---------------------------] 0% < 1 sec/< 1 sec/< 1 sec',
1025+
' 0/15 [>---------------------------] 0% < 1 ms/< 1 ms/< 1 ms',
10261026
stream_get_contents($output->getStream())
10271027
);
10281028
}
@@ -1111,7 +1111,7 @@ public function testEmptyInputWithDebugFormat()
11111111

11121112
rewind($output->getStream());
11131113
$this->assertEquals(
1114-
' 0/0 [============================] 100% < 1 sec/< 1 sec',
1114+
' 0/0 [============================] 100% < 1 ms/< 1 ms',
11151115
stream_get_contents($output->getStream())
11161116
);
11171117
}

0 commit comments

Comments
 (0)
0