public function flush() { if ($this->closed) { throw new IOException('Cannot read from a closed input.'); } }
/** * @expectedException \Webmozart\Console\Api\IO\IOException */ public function testFlushFailsAfterClose() { $stream = new BufferedOutputStream(); $stream->close(); $stream->flush(); }