You are here

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testFilterXPathWithAnUrl() {
  $crawler = $this
    ->createTestXmlCrawler();
  $crawler = $crawler
    ->filterXPath('//media:category[@scheme="http://gdata.youtube.com/schemas/2007/categories.cat"]');
  $this
    ->assertCount(1, $crawler);
  $this
    ->assertSame('Music', $crawler
    ->text());
}