Is it possible to simulate/make an XMLHttpRequest request (ajax) in symfony2 tests?
After search with "Problematic" answer, the correct syntax is:
$crawler = $client->request('GET', '/foo/', array(), array(), array( 'HTTP_X-Requested-With' => 'XMLHttpRequest', ));