You are here

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

@dataProvider provideFormat

File

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

Class

ProgressBarTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testFormatsWithoutMax($format) {
  $bar = new ProgressBar($output = $this
    ->getOutputStream());
  $bar
    ->setFormat($format);
  $bar
    ->start();
  rewind($output
    ->getStream());
  $this
    ->assertNotEmpty(stream_get_contents($output
    ->getStream()));
}