You are here

protected function CrawlerTest::createDomDocument 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::createDomDocument()
2 calls to CrawlerTest::createDomDocument()
CrawlerTest::testAdd in vendor/symfony/dom-crawler/Tests/CrawlerTest.php
@covers Symfony\Component\DomCrawler\Crawler::add
CrawlerTest::testAddDocument in vendor/symfony/dom-crawler/Tests/CrawlerTest.php
@covers Symfony\Component\DomCrawler\Crawler::addDocument

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

protected function createDomDocument() {
  $dom = new \DOMDocument();
  $dom
    ->loadXML('<html><div class="foo"></div></html>');
  return $dom;
}