You are here

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testFilterWithMultipleNamespaces() {
  CssSelector::disableHtmlExtension();
  $crawler = $this
    ->createTestXmlCrawler()
    ->filter('media|group yt|aspectRatio');
  $this
    ->assertCount(1, $crawler, '->filter() automatically registers namespaces');
  $this
    ->assertSame('widescreen', $crawler
    ->text());
}