Hi all, I am trying to use phpunit with symfony2. All basics work fine. I tried to use the DOMCrawler::link + Client::click(), as in examples, but it does not perform the apache/ mod_rewrite changes. My app runs on localhost/symfony/app.php (mod_rewrite changes all /* links to /symfony/app.php/*).
Snipplet of the issue: $link = $crawler->selectLink('Logout')->link(); # $client->click($link); # Had to comment out as the click tries to access invalid # its http://localhost/logout, instead of http://localhost/symfony/app.php/logout or /logout $uri = $link->getURI(); # my workaround is to replace localhost $uri = preg_replace("/(.*localhost)/", "", $uri); $crawler = $client->request('GET', $uri); -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en