public function CrawlerTest::testAddXmlContent 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::testAddXmlContent()
@covers Symfony\Component\DomCrawler\Crawler::addXmlContent
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 161
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testAddXmlContent() {
$crawler = new Crawler();
$crawler
->addXmlContent('<html><div class="foo"></div></html>', 'UTF-8');
$this
->assertEquals('foo', $crawler
->filterXPath('//div')
->attr('class'), '->addXmlContent() adds nodes from an XML string');
}