Skip to content

Commit

Permalink
Add missing variable assignment
Browse files Browse the repository at this point in the history
Line 41 made use of $crawler which wasn't defined.
  • Loading branch information
colinodell committed Feb 3, 2014
1 parent 58d1cbb commit 8f41c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/testing/simulating_authentication.rst
Expand Up @@ -35,7 +35,7 @@ with a request. The following example demonstrates this technique::
{
$this->logIn();

$this->client->request('GET', '/demo/secured/hello/Fabien');
$crawler = $this->client->request('GET', '/demo/secured/hello/Fabien');

$this->assertTrue($this->client->getResponse()->isSuccessful());
$this->assertGreaterThan(0, $crawler->filter('html:contains("Hello Fabien")')->count());
Expand Down

0 comments on commit 8f41c15

Please sign in to comment.