You are here

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testFilterXPathWithNamespace() {
  $crawler = $this
    ->createTestXmlCrawler()
    ->filterXPath('//yt:accessControl');
  $this
    ->assertCount(2, $crawler, '->filterXPath() automatically registers a namespace');
}