Webmozart\Console\IO\OutputStream\BufferedOutputStream::fetch PHP Method

fetch() public method

Returns the contents of the buffer.
public fetch ( ) : string
return string The buffered data.
    public function fetch()
    {
        return $this->buffer;
    }

Usage Example

Example #1
0
 public function testWriteLineRawDoesNotFormatText()
 {
     $formatter = $this->getMock('Webmozart\\Console\\Api\\Formatter\\Formatter');
     $formatter->expects($this->never())->method('format');
     $this->output->setFormatter($formatter);
     $this->output->writeLineRaw('<tag>text</tag>');
     $this->assertSame('<tag>text</tag>' . PHP_EOL, $this->stream->fetch());
 }
All Usage Examples Of Webmozart\Console\IO\OutputStream\BufferedOutputStream::fetch