You are here

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testConstructor() {
  $crawler = new Crawler();
  $this
    ->assertCount(0, $crawler, '__construct() returns an empty crawler');
  $crawler = new Crawler(new \DOMNode());
  $this
    ->assertCount(1, $crawler, '__construct() takes a node as a first argument');
}