You are here

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

@expectedException \LogicException @expectedExceptionMessage You can't regress the progress bar

File

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

Class

ProgressBarTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testRegressProgress() {
  $bar = new ProgressBar($output = $this
    ->getOutputStream(), 50);
  $bar
    ->start();
  $bar
    ->setProgress(15);
  $bar
    ->setProgress(10);
}