/** * @covers Form::getControls */ public function testAddControls() { $this->myForm->setValue('verify', 'required'); $this->myForm->addControl('verify', new \Textbox('phone')); $this->assertArrayHasKey('verify', $this->myForm->getControls()); }