You are here

public function ProgressBarTest::testDisplayWithoutStart 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::testDisplayWithoutStart()

File

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

Class

ProgressBarTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testDisplayWithoutStart() {
  $bar = new ProgressBar($output = $this
    ->getOutputStream(), 50);
  $bar
    ->display();
  rewind($output
    ->getStream());
  $this
    ->assertEquals($this
    ->generateOutput('  0/50 [>---------------------------]   0%'), stream_get_contents($output
    ->getStream()));
}