public function CrawlerTest::testFilterXPathWithDefaultNamespace 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::testFilterXPathWithDefaultNamespace()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 449
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testFilterXPathWithDefaultNamespace() {
$crawler = $this
->createTestXmlCrawler()
->filterXPath('//default:entry/default:id');
$this
->assertCount(1, $crawler, '->filterXPath() automatically registers a namespace');
$this
->assertSame('tag:youtube.com,2008:video:kgZRZmEc9j4', $crawler
->text());
}