class HasLink extends PageConstraint (View source)
string | toString() Get a string representation of the object. | from PageConstraint |
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. |
Get a string representation of the object.
Placeholder method to avoid forcing definition of this method.
Create a new constraint instance.
Check if the link is found in the given crawler.
Returns the description of the failure.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Foundation/Testing/Constraints/HasLink.html