public function CrawlerTest::testConstructor in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\DomCrawler\TestsCode
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');
}