public function testIsWritableDetached() { $this->stream = $this->resourceFactory(); $body = new Body($this->stream); $body->detach(); $this->assertFalse($body->isWritable()); }