public function ProgressBarTest::testAdvanceOverMax 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::testAdvanceOverMax()
File
- vendor/
symfony/ console/ Tests/ Helper/ ProgressBarTest.php, line 91
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testAdvanceOverMax() {
$bar = new ProgressBar($output = $this
->getOutputStream(), 10);
$bar
->setProgress(9);
$bar
->advance();
$bar
->advance();
rewind($output
->getStream());
$this
->assertEquals($this
->generateOutput(' 9/10 [=========================>--] 90%') . $this
->generateOutput(' 10/10 [============================] 100%') . $this
->generateOutput(' 11/11 [============================] 100%'), stream_get_contents($output
->getStream()));
}