/** * @expectedException \Webmozart\Console\Api\IO\IOException */ public function testFlushFailsAfterClose() { $stream = new BufferedOutputStream(); $stream->close(); $stream->flush(); }