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