class HasValue extends FormFieldConstraint (View source)

Methods

string
toString()

Get a string representation of the object.

void
__construct( string $selector, mixed $value)

Create a new constraint instance.

bool
matches( Crawler|string $crawler)

Check if the input contains the expected value.

string
getInputOrTextAreaValue( Crawler $crawler)

Get the value of an input or textarea.

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

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

Check if the input contains the expected value.

Parameters

Crawler|string $crawler

Return Value

bool

at line line 40
string getInputOrTextAreaValue( Crawler $crawler)

Get the value of an input or textarea.

Parameters

Crawler $crawler

Return Value

string

Exceptions

PHPUnit_Framework_ExpectationFailedException