Webmozart\Console\IO\BufferedIO::clearOutput PHP Method

clearOutput() public method

Clears the output buffer.
public clearOutput ( )
    public function clearOutput()
    {
        $this->getOutput()->getStream()->clear();
    }

Usage Example

Example #1
0
 public function testClearOutput()
 {
     $io = new BufferedIO();
     $io->write('Lorem');
     $io->clearOutput();
     $io->write('ipsum');
     $this->assertSame('ipsum', $io->fetchOutput());
 }