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

Breadcrumb

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

function CrawlerAnySelectorTextContains::toString

Overrides SelfDescribing::toString

1 call to CrawlerAnySelectorTextContains::toString()
CrawlerAnySelectorTextContains::failureDescription in vendor/symfony/dom-crawler/Test/Constraint/CrawlerAnySelectorTextContains.php
Returns the description of the failure.

File

vendor/symfony/dom-crawler/Test/Constraint/CrawlerAnySelectorTextContains.php, line 27

Class

CrawlerAnySelectorTextContains

Namespace

Symfony\Component\DomCrawler\Test\Constraint

Code

public function toString() : string {
    if ($this->hasNode) {
        return \sprintf('the text of any node matching selector "%s" contains "%s"', $this->selector, $this->expectedText);
    }
    return \sprintf('the Crawler has a node matching selector "%s"', $this->selector);
}

API Navigation

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