Permalink
Browse files

bug #3537 Add missing variable assignment (colinodell)

This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #3537).

Discussion
----------

Add missing variable assignment

Line 41 made use of $crawler which wasn't defined.

Commits
-------

8f41c15 Add missing variable assignment
  • Loading branch information...
weaverryan committed Feb 11, 2014
2 parents d7e8262 + 4436773 commit 819949cce72a4253ef9a4df6f7d260f83d08e5c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 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());

0 comments on commit 819949c

Please sign in to comment.