You are here

public function CrawlerTest::testFilterXPathWithNamespaceAxis 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::testFilterXPathWithNamespaceAxis()

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testFilterXPathWithNamespaceAxis() {
  $crawler = $this
    ->createTestCrawler()
    ->filterXPath('//button');
  $this
    ->assertCount(0, $crawler
    ->filterXPath('namespace::*'), 'The fake root node has no namespace nodes');
}