function testThatPreFilterDoesNotValidateFormIfNotPresent() { $env = $this->getEnvironment(); $form = new T_Form_Get('myform', 'Test Form'); $form->addChild(new T_Test_Form_ElementStub('element', 'Label')); $filter = new T_Form_GetHandler($form, $env); $response = new T_Response(); $filter->preFilter($response); $this->assertFalse($form->isPresent()); $this->assertFalse($form->element->isValidated()); }