You are here

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

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testAddNodeList() {
  $crawler = new Crawler();
  $crawler
    ->addNodeList($this
    ->createNodeList());
  $this
    ->assertEquals('foo', $crawler
    ->filterXPath('//div')
    ->attr('class'), '->addNodeList() adds nodes from a \\DOMNodeList');
}