public function testValidationFailure() { $form = new Admin_Form_Collection(); $this->assertFalse($form->isValid(array())); $errors = $form->getErrors('Name'); $this->assertNotNull($errors); $this->assertContains('allElementsEmpty', $errors); $errors = $form->getErrors('Number'); $this->assertNotNull($errors); $this->assertContains('allElementsEmpty', $errors); }