public function CrawlerTest::testFilterXPathWithFakeRoot 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::testFilterXPathWithFakeRoot()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 498
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testFilterXPathWithFakeRoot() {
$crawler = $this
->createTestCrawler();
$this
->assertCount(0, $crawler
->filterXPath('.'), '->filterXPath() returns an empty result if the XPath references the fake root node');
$this
->assertCount(0, $crawler
->filterXPath('/_root'), '->filterXPath() returns an empty result if the XPath references the fake root node');
$this
->assertCount(0, $crawler
->filterXPath('self::*'), '->filterXPath() returns an empty result if the XPath references the fake root node');
$this
->assertCount(0, $crawler
->filterXPath('self::_root'), '->filterXPath() returns an empty result if the XPath references the fake root node');
}