You are here

protected function ProgressBarTest::generateOutput 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::generateOutput()
21 calls to ProgressBarTest::generateOutput()
ProgressBarTest::testAddingPlaceholderFormatter in vendor/symfony/console/Tests/Helper/ProgressBarTest.php
ProgressBarTest::testAdvance in vendor/symfony/console/Tests/Helper/ProgressBarTest.php
ProgressBarTest::testAdvanceMultipleTimes in vendor/symfony/console/Tests/Helper/ProgressBarTest.php
ProgressBarTest::testAdvanceOverMax in vendor/symfony/console/Tests/Helper/ProgressBarTest.php
ProgressBarTest::testAdvanceWithStep in vendor/symfony/console/Tests/Helper/ProgressBarTest.php

... See full list

File

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

Class

ProgressBarTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

protected function generateOutput($expected) {
  $count = substr_count($expected, "\n");
  return "\r" . ($count ? sprintf("\33[%dA", $count) : '') . $expected;
}