You are here

public function CrawlerTest::testFilterXPathWithAncestorOrSelfAxis in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testFilterXPathWithAncestorOrSelfAxis() {
  $crawler = $this
    ->createTestCrawler()
    ->filterXPath('//form');
  $this
    ->assertCount(0, $crawler
    ->filterXPath('ancestor-or-self::*'), 'The fake root node has no ancestor nodes');
}