protected function CrawlerTest::createTestXmlCrawler 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::createTestXmlCrawler()
3 calls to CrawlerTest::createTestXmlCrawler()
- CrawlerTest::testFilterXPathWithAnUrl in vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php - CrawlerTest::testFilterXPathWithCustomDefaultNamespace in vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php - CrawlerTest::testFilterXPathWithManuallyRegisteredNamespace in vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 1051
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
protected function createTestXmlCrawler($uri = null) {
$xml = '<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007">
<id>tag:youtube.com,2008:video:kgZRZmEc9j4</id>
<yt:accessControl action="comment" permission="allowed"/>
<yt:accessControl action="videoRespond" permission="moderated"/>
<media:group>
<media:title type="plain">Chordates - CrashCourse Biology #24</media:title>
<yt:aspectRatio>widescreen</yt:aspectRatio>
</media:group>
<media:category label="Music" scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Music</media:category>
</entry>';
return new Crawler($xml, $uri);
}