public function testFlush() { $stream = $this->getMock('Webmozart\\Console\\Api\\IO\\OutputStream'); $stream->expects($this->once())->method('flush'); $this->output->setStream($stream); $this->output->flush(); }
/** * 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(); }