CrawlerSelectorTextContains
extends Constraint
in package
FinalYes
Table of Contents
Properties
- $expectedText : string
- $hasNode : bool
- $nodeText : string
- $selector : string
Methods
- __construct() : mixed
- toString() : string
- failureDescription() : string
- matches() : bool
Properties
$expectedText
private
string
$expectedText
$hasNode
private
bool
$hasNode
= false
$nodeText
private
string
$nodeText
$selector
private
string
$selector
Methods
__construct()
public
__construct(string $selector, string $expectedText) : mixed
Parameters
- $selector : string
- $expectedText : string
toString()
public
toString() : string
Return values
stringfailureDescription()
protected
failureDescription(Crawler $crawler) : string
Parameters
- $crawler : Crawler
Return values
stringmatches()
protected
matches(Crawler $crawler) : bool
Parameters
- $crawler : Crawler