public function LegacyProgressHelperTest::testAdvanceWithStep 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::testAdvanceWithStep()
File
- vendor/
symfony/ console/ Tests/ Helper/ LegacyProgressHelperTest.php, line 45
Class
- LegacyProgressHelperTest
- @group legacy
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testAdvanceWithStep() {
$progress = new ProgressHelper();
$progress
->start($output = $this
->getOutputStream());
$progress
->advance(5);
rewind($output
->getStream());
$this
->assertEquals($this
->generateOutput(' 5 [----->----------------------]'), stream_get_contents($output
->getStream()));
}