/** @expectedException \Form\FormException */ public function testSubmitWrongData() { $form = new Form('product'); $form->add(new Form('title')); $form->add(new Form('description')); $form->submit('foo'); }