You are here

public function LegacyProgressHelperTest::testNonDecoratedOutput in Zircon Profile 8

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

File

vendor/symfony/console/Tests/Helper/LegacyProgressHelperTest.php, line 211

Class

LegacyProgressHelperTest
@group legacy

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testNonDecoratedOutput() {
  $progress = new ProgressHelper();
  $progress
    ->start($output = $this
    ->getOutputStream(false));
  $progress
    ->advance();
  rewind($output
    ->getStream());
  $this
    ->assertEquals('', stream_get_contents($output
    ->getStream()));
}