public function ProgressBarTest::testNonDecoratedOutputWithoutMax 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::testNonDecoratedOutputWithoutMax()
File
- vendor/
symfony/ console/ Tests/ Helper/ ProgressBarTest.php, line 370
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testNonDecoratedOutputWithoutMax() {
$bar = new ProgressBar($output = $this
->getOutputStream(false));
$bar
->start();
$bar
->advance();
rewind($output
->getStream());
$this
->assertEquals(' 0 [>---------------------------]' . PHP_EOL . ' 1 [->--------------------------]', stream_get_contents($output
->getStream()));
}