HasLink
class HasLink extends PageConstraint (View source)
Methods
void
__construct(
string $text,
string|null $url = null)
Create a new constraint instance.
bool
matches(
Crawler|string $crawler)
Check if the link is found in the given crawler.
string
getFailureDescription()
Returns the description of the failure.
Details
in PageConstraint at line line 110
string
toString()
Get a string representation of the object.
Placeholder method to avoid forcing definition of this method.
at line line 31
void
__construct(
string $text,
string|null $url = null)
Create a new constraint instance.
at line line 43
bool
matches(
Crawler|string $crawler)
Check if the link is found in the given crawler.