You are here

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

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testClear() {
  $crawler = new Crawler(new \DOMNode());
  $crawler
    ->clear();
  $this
    ->assertCount(0, $crawler, '->clear() removes all the nodes from the crawler');
}