public function ProgressBarTest::testMultipleStart in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Helper/ProgressBarTest.php \Symfony\Component\Console\Tests\Helper\ProgressBarTest::testMultipleStart()
File
- vendor/
symfony/ console/ Tests/ Helper/ ProgressBarTest.php, line 31
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testMultipleStart() {
$bar = new ProgressBar($output = $this
->getOutputStream());
$bar
->start();
$bar
->advance();
$bar
->start();
rewind($output
->getStream());
$this
->assertEquals($this
->generateOutput(' 0 [>---------------------------]') . $this
->generateOutput(' 1 [->--------------------------]') . $this
->generateOutput(' 0 [>---------------------------]'), stream_get_contents($output
->getStream()));
}