Symfony\Component\DomCrawler\Tests\CrawlerTest::testFilterXPathWithMultipleNamespaces PHP Method

testFilterXPathWithMultipleNamespaces() public method

    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());
    }
CrawlerTest