You are here

protected function CrawlerTest::createNodeList 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::createNodeList()
3 calls to CrawlerTest::createNodeList()
CrawlerTest::testAdd in vendor/symfony/dom-crawler/Tests/CrawlerTest.php
@covers Symfony\Component\DomCrawler\Crawler::add
CrawlerTest::testAddNodeList in vendor/symfony/dom-crawler/Tests/CrawlerTest.php
@covers Symfony\Component\DomCrawler\Crawler::addNodeList
CrawlerTest::testAddNodes in vendor/symfony/dom-crawler/Tests/CrawlerTest.php
@covers Symfony\Component\DomCrawler\Crawler::addNodes

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

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