public function testFieldList() { $this->form->add(new Text('txtfld')); $this->form->add(new TextArea('txtarea')); $fields = $this->form->fieldList(); $this->assertArrayHasKey('txtfld', $fields); $this->assertArrayHasKey('txtarea', $fields); }