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