You are here

protected function LegacyProgressHelperTest::generateOutput 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::generateOutput()
10 calls to LegacyProgressHelperTest::generateOutput()
LegacyProgressHelperTest::testAdvance in vendor/symfony/console/Tests/Helper/LegacyProgressHelperTest.php
LegacyProgressHelperTest::testAdvanceMultipleTimes in vendor/symfony/console/Tests/Helper/LegacyProgressHelperTest.php
LegacyProgressHelperTest::testAdvanceWithStep in vendor/symfony/console/Tests/Helper/LegacyProgressHelperTest.php
LegacyProgressHelperTest::testClear in vendor/symfony/console/Tests/Helper/LegacyProgressHelperTest.php
LegacyProgressHelperTest::testCustomizations in vendor/symfony/console/Tests/Helper/LegacyProgressHelperTest.php

... See full list

File

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

Class

LegacyProgressHelperTest
@group legacy

Namespace

Symfony\Component\Console\Tests\Helper

Code

protected function generateOutput($expected) {
  $expectedout = $expected;
  if ($this->lastMessagesLength !== null) {
    $expectedout = str_pad($expected, $this->lastMessagesLength, " ", STR_PAD_RIGHT);
  }
  $this->lastMessagesLength = strlen($expectedout);
  return "\r" . $expectedout;
}