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