class HasInElement extends PageConstraint (View source)

Methods

string
toString()

Get a string representation of the object.

void
__construct( string $element, string $text)

Create a new constraint instance.

bool
matches( Crawler|string $crawler)

Check if the source or text is found within the element in the given crawler.

Details

string toString()

Get a string representation of the object.

Placeholder method to avoid forcing definition of this method.

Return Value

string

at line line 30
void __construct( string $element, string $text)

Create a new constraint instance.

Parameters

string $element
string $text

Return Value

void

at line line 42
bool matches( Crawler|string $crawler)

Check if the source or text is found within the element in the given crawler.

Parameters

Crawler|string $crawler

Return Value

bool