You are here

public function ProgressBarTest::testAdvanceWithStep in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Helper/ProgressBarTest.php \Symfony\Component\Console\Tests\Helper\ProgressBarTest::testAdvanceWithStep()

File

vendor/symfony/console/Tests/Helper/ProgressBarTest.php, line 61

Class

ProgressBarTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testAdvanceWithStep() {
  $bar = new ProgressBar($output = $this
    ->getOutputStream());
  $bar
    ->start();
  $bar
    ->advance(5);
  rewind($output
    ->getStream());
  $this
    ->assertEquals($this
    ->generateOutput('    0 [>---------------------------]') . $this
    ->generateOutput('    5 [----->----------------------]'), stream_get_contents($output
    ->getStream()));
}