public function testDetachesAndCloses() { $b = new PostBody(); $b->setField('foo', 'bar'); $b->detach(); $b->close(); $this->assertEquals('', $b->read(10)); }