PHP Class Eloquent\Phony\Matcher\EqualToMatcher

Inheritance: implements Eloquent\Phony\Matcher\Matcher
Show file Open project: eloquent/phony

Public Methods

Method Description
__construct ( mixed $value, boolean $useSubstitution, Eloquent\Phony\Exporter\Exporter $exporter ) Construct a new equal to matcher.
__toString ( ) : string Describe this matcher.
describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string Describe this matcher.
matches ( mixed $value ) : boolean Returns true if $value matches this matcher's criteria.
value ( ) : mixed Get the value.

Method Details

__construct() public method

Construct a new equal to matcher.
public __construct ( mixed $value, boolean $useSubstitution, Eloquent\Phony\Exporter\Exporter $exporter )
$value mixed The value to check against.
$useSubstitution boolean True to use substitution for wrapper types.
$exporter Eloquent\Phony\Exporter\Exporter The exporter to use.

__toString() public method

Describe this matcher.
public __toString ( ) : string
return string The description.

describe() public method

Describe this matcher.
public describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string
$exporter Eloquent\Phony\Exporter\Exporter The exporter to use.
return string The description.

matches() public method

Returns true if $value matches this matcher's criteria.
public matches ( mixed $value ) : boolean
$value mixed The value to check.
return boolean True if the value matches.

value() public method

Get the value.
public value ( ) : mixed
return mixed The value.