public function CrawlerTest::testClear 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::testClear()
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 292
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testClear() {
$crawler = new Crawler(new \DOMNode());
$crawler
->clear();
$this
->assertCount(0, $crawler, '->clear() removes all the nodes from the crawler');
}