Matthias\SymfonyConsoleForm\Tests\Helper\ApplicationTester::getDisplay PHP Method

getDisplay() public method

public getDisplay ( $normalize = false ) : string
return string
    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;
    }

Usage Example

コード例 #1
0
 private function getOutput()
 {
     return $this->tester->getDisplay(true);
 }