flush() public method

Forces all pending text to be written out.
public flush ( )
Beispiel #1
0
 public function testFlush()
 {
     $stream = $this->getMock('Webmozart\\Console\\Api\\IO\\OutputStream');
     $stream->expects($this->once())->method('flush');
     $this->output->setStream($stream);
     $this->output->flush();
 }
Beispiel #2
0
 /**
  * Flushes the outputs and forces all pending text to be written out.
  *
  * @throws IOException If flushing fails or if the outputs are closed.
  */
 public function flush()
 {
     $this->output->flush();
     $this->errorOutput->flush();
 }