public function CrawlerTest::testCountOfNestedElements in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testCountOfNestedElements()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 994
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testCountOfNestedElements() {
$crawler = new Crawler('<html><body><ul><li>List item 1<ul><li>Sublist item 1</li><li>Sublist item 2</ul></li></ul></body></html>');
$this
->assertCount(1, $crawler
->filter('li:contains("List item 1")'));
}