/** * Should show all the elements with a correct value */ function testComplexFormGetValues() { $form = new SimpleForm_Form(); $form->parse($this->getFormHtml('complexform.html')); $this->assertEqual(5, count($form->getAllElements())); $this->assertEqual(3, count($form->getAllLabels())); $this->assertEqual(array('testelement' => 'Element Contents', 'myselect' => 'First Option', 'editor' => 'Some Initial Text', 'submit' => 'Submit', 'cancel' => 'Cancel'), $form->getValues()); }