Skip to content

Navigation Menu

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 d9ea4c5

Browse filesBrowse files
grasmashfabpot
authored andcommitted
Add test.
1 parent dc02ab3 commit d9ea4c5
Copy full SHA for d9ea4c5

File tree

1 file changed

+15
-0
lines changed
Filter options

1 file changed

+15
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,21 @@ public function testSetFormat()
899899
);
900900
}
901901

902+
public function testUnicode()
903+
{
904+
$bar = new ProgressBar($output = $this->getOutputStream(), 10, 0);
905+
ProgressBar::setFormatDefinition('test', '%current%/%max% [%bar%] %percent:3s%% %message% Fruitcake marzipan toffee. Cupcake gummi bears tart dessert ice cream chupa chups cupcake chocolate bar sesame snaps. Croissant halvah cookie jujubes powder macaroon. Fruitcake bear claw bonbon jelly beans oat cake pie muffin Fruitcake marzipan toffee.');
906+
$bar->setFormat('test');
907+
$bar->setProgressCharacter('💧');
908+
$bar->start();
909+
rewind($output->getStream());
910+
$this->assertStringContainsString(
911+
' 0/10 [💧] 0%',
912+
stream_get_contents($output->getStream())
913+
);
914+
$bar->finish();
915+
}
916+
902917
/**
903918
* @dataProvider provideFormat
904919
*/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.