From 67b4e9ef688adbd879584648aa87427d3988d47b Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Mon, 3 Feb 2014 13:09:18 -0500 Subject: [PATCH] Add missing variable assignment Line 41 made use of `$crawler` which wasn't defined. --- cookbook/testing/simulating_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/testing/simulating_authentication.rst b/cookbook/testing/simulating_authentication.rst index b67365398b3..56168f09552 100644 --- a/cookbook/testing/simulating_authentication.rst +++ b/cookbook/testing/simulating_authentication.rst @@ -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());