public function LegacyProgressHelperTest::testAdvanceMultipleTimes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Helper/LegacyProgressHelperTest.php \Symfony\Component\Console\Tests\Helper\LegacyProgressHelperTest::testAdvanceMultipleTimes()
File
- vendor/
symfony/ console/ Tests/ Helper/ LegacyProgressHelperTest.php, line 55
Class
- LegacyProgressHelperTest
- @group legacy
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testAdvanceMultipleTimes() {
$progress = new ProgressHelper();
$progress
->start($output = $this
->getOutputStream());
$progress
->advance(3);
$progress
->advance(2);
rewind($output
->getStream());
$this
->assertEquals($this
->generateOutput(' 3 [--->------------------------]') . $this
->generateOutput(' 5 [----->----------------------]'), stream_get_contents($output
->getStream()));
}