public function CrawlerTest::testAddDocument 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::testAddDocument()
@covers Symfony\Component\DomCrawler\Crawler::addDocument
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 247
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testAddDocument() {
$crawler = new Crawler();
$crawler
->addDocument($this
->createDomDocument());
$this
->assertEquals('foo', $crawler
->filterXPath('//div')
->attr('class'), '->addDocument() adds nodes from a \\DOMDocument');
}