Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 718cefa

Browse filesBrowse 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
Copy full SHA for 718cefa

File tree

Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Helper/HelperTest.php
+1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.