public function testRemove() { $form = $this->createForm('<form method="post"><input type="text" name="bar" value="bar" /><input type="submit" /></form>'); $form->remove('bar'); $this->assertFalse($form->has('bar'), '->remove() removes a field'); }