Debugging tests can often be a pain, but using those snippets it's possible to get a lot of informations when using WebTestCase
or PantherTestCase
.
Sometimes you'll want to inspect the HTML of the page or a specific element. There is no official method for this yet but the following works:
$crawler = $client->request('GET', '/my-url/');