public function testGetContentsDetachedThrowsRuntimeException() { $this->body->detach(); $this->setExpectedException('\\RuntimeException'); $this->body->getContents(); }