You are here

public function ApplicationTester::getDisplay in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tester/ApplicationTester.php \Symfony\Component\Console\Tester\ApplicationTester::getDisplay()

Gets the display returned by the last execution of the application.

Parameters

bool $normalize Whether to normalize end of lines to \n or not:

Return value

string The display

File

vendor/symfony/console/Tester/ApplicationTester.php, line 86

Class

ApplicationTester
Eases the testing of console applications.

Namespace

Symfony\Component\Console\Tester

Code

public function getDisplay($normalize = false) {
  rewind($this->output
    ->getStream());
  $display = stream_get_contents($this->output
    ->getStream());
  if ($normalize) {
    $display = str_replace(PHP_EOL, "\n", $display);
  }
  return $display;
}