We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff548b2 + 5f68f03 commit e2ef8ecCopy full SHA for e2ef8ec
book/testing.rst
@@ -261,7 +261,7 @@ document::
261
$this->assertGreaterThan(0, $crawler->filter('h2.subtitle')->count());
262
263
// Assert that there are exactly 4 h2 tags on the page
264
- $this->assertCount(4, $crawler->filter('h2')->count());
+ $this->assertCount(4, $crawler->filter('h2'));
265
266
// Assert that the "Content-Type" header is "application/json"
267
$this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'));
0 commit comments