You are here

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

@covers Symfony\Component\DomCrawler\Crawler::addDocument

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testAddDocument() {
  $crawler = new Crawler();
  $crawler
    ->addDocument($this
    ->createDomDocument());
  $this
    ->assertEquals('foo', $crawler
    ->filterXPath('//div')
    ->attr('class'), '->addDocument() adds nodes from a \\DOMDocument');
}