コード例 #1
0
 public function testFieldsCanBeRemoved()
 {
     $registry = new FormFieldRegistry();
     $registry->add($this->getFormFieldMock('foo'));
     $registry->remove('foo');
     $this->assertFalse($registry->has('foo'));
 }
コード例 #2
0
ファイル: Form.php プロジェクト: Imangazaliev/Tweezers
 /**
  * Removes a field from the form.
  *
  * @param string $name The field name
  */
 public function offsetUnset($name)
 {
     $this->fields->remove($name);
 }