Commit d2a9a6f6 authored by Wouter J's avatar Wouter J

[Doc/Testing] Replaced assertEquals(1, count(...)) with assertCount(1, ...)

parent 6ad4c16a
......@@ -129,8 +129,8 @@ and allows you to interact with your application. Here's how it works::
$crawler = $client->request('GET', '/');
$this->assertTrue($client->getResponse()->isOk());
$this->assertEquals(1, count($crawler->filter('h1:contains("Contact us")')));
$this->assertEquals(1, count($crawler->filter('form')));
$this->assertCount(1, $crawler->filter('h1:contains("Contact us")'));
$this->assertCount(1, $crawler->filter('form'));
...
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment