public function testHandleSymfonyGetRequest() { if (!class_exists('Symfony\\Component\\HttpFoundation\\Request')) { $this->markTestSkipped("Symfony Request component not installed"); return null; } $request = new Request(array('name' => 'Example Name')); $form_handler = new FormHandler($this->basic_form, new SymfonyRequestHandler()); $form_handler->setMethod('GET'); $form_handler->handleRequest($request, 'symfony'); $this->assertEquals('Example Name', $form_handler->getData('name')); $this->assertTrue($form_handler->isSubmitted()); }