You are here

public function CrawlerTest::testFilterXPathWithFollowingAxis in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testFilterXPathWithFollowingAxis()

File

vendor/symfony/dom-crawler/Tests/CrawlerTest.php, line 540

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testFilterXPathWithFollowingAxis() {
  $crawler = $this
    ->createTestCrawler()
    ->filterXPath('//a');
  $this
    ->assertCount(0, $crawler
    ->filterXPath('following::div'), 'The fake root node has no following nodes');
}