public function CrawlerTest::testFilterXPathWithAncestorOrSelfAxis in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testFilterXPathWithAncestorOrSelfAxis()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 514
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testFilterXPathWithAncestorOrSelfAxis() {
$crawler = $this
->createTestCrawler()
->filterXPath('//form');
$this
->assertCount(0, $crawler
->filterXPath('ancestor-or-self::*'), 'The fake root node has no ancestor nodes');
}