public function LegacyProgressHelperTest::testRedrawFrequency 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::testRedrawFrequency()
File
- vendor/
symfony/ console/ Tests/ Helper/ LegacyProgressHelperTest.php, line 155
Class
- LegacyProgressHelperTest
- @group legacy
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testRedrawFrequency() {
$progress = $this
->getMock('Symfony\\Component\\Console\\Helper\\ProgressHelper', array(
'display',
));
$progress
->expects($this
->exactly(4))
->method('display');
$progress
->setRedrawFrequency(2);
$progress
->start($output = $this
->getOutputStream(), 6);
$progress
->setCurrent(1);
$progress
->advance(2);
$progress
->advance(2);
$progress
->advance(1);
}