public function testFilterRemovesDuplicates() { $crawler = $this->createTestCrawler()->filter('html, body')->filter('li'); $this->assertCount(6, $crawler, 'The crawler removes duplicates when filtering.'); }