You are here

public function LegacyProgressHelperTest::testAdvanceWithStep in Zircon Profile 8.0

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

File

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

Class

LegacyProgressHelperTest
@group legacy

Namespace

Symfony\Component\Console\Tests\Helper

Code

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