Skip to content

Commit 718cefa

Browse files
committed
[Console] Fix code standard issue and test.
Fix test that set < 1 sec to 1 sec due to time formatting.
1 parent b15d84c commit 718cefa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function formatTimeProvider()
4343

4444
/**
4545
* @dataProvider formatTimeProvider
46+
*
4647
* @param int $secs
4748
* @param string $expectedFormat
4849
*/

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,17 +591,17 @@ public function testAnsiColorsAndEmojis()
591591
$this->generateOutput(
592592
" \033[44;37m Starting the demo... fingers crossed \033[0m\n".
593593
' 0/15 '.$progress.str_repeat($empty, 26)." 0%\n".
594-
" \xf0\x9f\x8f\x81 1 sec \033[44;37m 0 B \033[0m"
594+
" \xf0\x9f\x8f\x81 < 1 sec \033[44;37m 0 B \033[0m"
595595
).
596596
$this->generateOutput(
597597
" \033[44;37m Looks good to me... \033[0m\n".
598598
' 4/15 '.str_repeat($done, 7).$progress.str_repeat($empty, 19)." 26%\n".
599-
" \xf0\x9f\x8f\x81 1 sec \033[41;37m 97 KiB \033[0m"
599+
" \xf0\x9f\x8f\x81 < 1 sec \033[41;37m 97 KiB \033[0m"
600600
).
601601
$this->generateOutput(
602602
" \033[44;37m Thanks, bye \033[0m\n".
603603
' 15/15 '.str_repeat($done, 28)." 100%\n".
604-
" \xf0\x9f\x8f\x81 1 sec \033[41;37m 195 KiB \033[0m"
604+
" \xf0\x9f\x8f\x81 < 1 sec \033[41;37m 195 KiB \033[0m"
605605
),
606606
stream_get_contents($output->getStream())
607607
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy