Matthias\SymfonyConsoleForm\Tests\Helper\ApplicationTester::getDisplay PHP 메소드

getDisplay() 공개 메소드

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