public function CrawlerTest::testChaining 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::testChaining()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 786
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testChaining() {
$crawler = new Crawler('<div name="a"><div name="b"><div name="c"></div></div></div>');
$this
->assertEquals('a', $crawler
->filterXPath('//div')
->filterXPath('div')
->filterXPath('div')
->attr('name'));
}