flush() public method

Forces all pending text to be written out.
public flush ( )
示例#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();
 }
示例#2
0
文件: IO.php 项目: webmozart/console
 /**
  * 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();
 }