/** * @covers Form::registerControl */ public function testRegisterControl() { $cont = new \Textbox('Mask'); $this->assertNull($cont->getForm()); $this->myForm->registerControl($cont); $this->assertSame($this->myForm, $cont->getForm()); }