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