W3cubDocs

/Laravel 5.3

IsSelected

class IsSelected extends FormFieldConstraint (View source)

Methods

string toString()

Get a string representation of the object.

from PageConstraint
void __construct(string $selector, mixed $value)

Create a new constraint instance.

from FormFieldConstraint
array getSelectedValue(Crawler $crawler)

Get the selected value of a select field or radio group.

Details

string toString()

Get a string representation of the object.

Placeholder method to avoid forcing definition of this method.

Return Value

string

void __construct(string $selector, mixed $value)

Create a new constraint instance.

Parameters

string $selector
mixed $value

Return Value

void

array getSelectedValue(Crawler $crawler)

Get the selected value of a select field or radio group.

Parameters

Crawler $crawler

Return Value

array

Exceptions

PHPUnit_Framework_ExpectationFailedException

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Testing/Constraints/IsSelected.html