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
Namespace
Symfony\Component\DomCrawler\Test\ConstraintCode
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);
}