public function test_set_values_form() { $input3 = $this->mockInputText('name3'); $input2 = $this->mockInputText('name2'); $input1 = $this->mockInputText('name1'); $input3->expects($this->once())->method('setValue'); $form = new Form(); $form->addInput($input3); $aValues = array('name3' => 'value 3 du formulaire'); $form->setValues($aValues); $form_html = $form->getDisplay(); }