You are here

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

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