public function testIsWritableReturnsFalseWhenStreamIsNotWritable() { $resource = Stream::fopen('php://temp', 'rb'); $stream = new Stream($resource); $this->assertFalse($stream->isWritable()); }