public function testStreamWrite() { $this->setExpectedException(ReadOnlyStreamException::class); $stream = new Stream(); $stream->stream_write(); }