Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CrawlerSelectorCount.php

function CrawlerSelectorCount::failureDescription

Parameters

Crawler $crawler:

Overrides Constraint::failureDescription

File

vendor/symfony/dom-crawler/Test/Constraint/CrawlerSelectorCount.php, line 41

Class

CrawlerSelectorCount

Namespace

Symfony\Component\DomCrawler\Test\Constraint

Code

protected function failureDescription($crawler) : string {
    return \sprintf('the Crawler selector "%s" was expected to be found %d time(s) but was found %d time(s)', $this->selector, $this->count, \count($crawler->filter($this->selector)));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal