Skip to content

Commit 26a5156

Browse files
weaverryanfabpot
authored andcommitted
[testing][overview] Small fix - the test on the h1 should be that we compare the count of the matched elements to the expected value "1".
1 parent 04cc3a0 commit 26a5156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/testing/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ for ``HelloController`` that reads as follows::
108108
$client = $this->createClient();
109109
$crawler = $client->request('GET', '/hello/Fabien');
110110

111-
$this->assertEquals(1, $crawler->filter('html:contains("Hello Fabien")'));
111+
$this->assertEquals(1, count($crawler->filter('html:contains("Hello Fabien")')));
112112
}
113113
}
114114

0 commit comments

Comments
 (0)