public function CrawlerTest::testFilterXPathWithMultipleNamespaces in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testFilterXPathWithMultipleNamespaces()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 472
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testFilterXPathWithMultipleNamespaces() {
$crawler = $this
->createTestXmlCrawler()
->filterXPath('//media:group/yt:aspectRatio');
$this
->assertCount(1, $crawler, '->filterXPath() automatically registers multiple namespaces');
$this
->assertSame('widescreen', $crawler
->text());
}