public function CrawlerTest::testFilterXPathWithAnUrl 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::testFilterXPathWithAnUrl()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 489
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
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());
}