Skip to content

Commit e2ef8ec

Browse files
committed
Merge pull request #1407 from aerialls/patch-2
[Testing] fixed wrong PHPUnit assert
2 parents ff548b2 + 5f68f03 commit e2ef8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ document::
261261
$this->assertGreaterThan(0, $crawler->filter('h2.subtitle')->count());
262262

263263
// Assert that there are exactly 4 h2 tags on the page
264-
$this->assertCount(4, $crawler->filter('h2')->count());
264+
$this->assertCount(4, $crawler->filter('h2'));
265265

266266
// Assert that the "Content-Type" header is "application/json"
267267
$this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'));

0 commit comments

Comments
 (0)