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

Breadcrumb

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

function CrawlerSelectorTextContains::toString

Overrides SelfDescribing::toString

1 call to CrawlerSelectorTextContains::toString()
CrawlerSelectorTextContains::failureDescription in vendor/symfony/dom-crawler/Test/Constraint/CrawlerSelectorTextContains.php

File

vendor/symfony/dom-crawler/Test/Constraint/CrawlerSelectorTextContains.php, line 28

Class

CrawlerSelectorTextContains

Namespace

Symfony\Component\DomCrawler\Test\Constraint

Code

public function toString() : string {
    if ($this->hasNode) {
        return \sprintf('the text "%s" of the node matching selector "%s" contains "%s"', $this->nodeText, $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