/** * @expectedException \Dewdrop\Exception */ public function testCanResetFieldsSet() { $set = new Fields(); $this->field->setFieldsSet($set); $this->field->add('should_work'); $this->field->resetFieldsSet(); $this->field->add('should_throw'); }