N98\Util\Console\Helper\Table\Renderer\TestCase::getOutputBuffer PHP Method

getOutputBuffer() protected method

helper method to get output as string out of a StreamOutput
protected getOutputBuffer ( Symfony\Component\Console\Output\StreamOutput $output ) : string
$output Symfony\Component\Console\Output\StreamOutput
return string all output
    protected function getOutputBuffer(StreamOutput $output)
    {
        $handle = $output->getStream();
        rewind($handle);
        $display = stream_get_contents($handle);
        // Symfony2's StreamOutput has a hidden dependency on PHP_EOL which needs to be removed by
        // normalizing it to the standard newline for text here.
        $display = strtr($display, array(PHP_EOL => "\n"));
        return $display;
    }