Ejemplo n.º 1
0
 /**
  * Removes a field from the form.
  *
  * @param string $name The field name
  */
 public function offsetUnset($name)
 {
     $this->fields->remove($name);
 }
Ejemplo n.º 2
0
 public function testFormRegistryFieldsCanBeRemoved()
 {
     $registry = new FormFieldRegistry();
     $registry->add($this->getFormFieldMock('foo'));
     $registry->remove('foo');
     $this->assertFalse($registry->has('foo'));
 }