You are here

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

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