Class Match
A Match is the result of MatcherInterface::match($actual).
Namespace: Peridot\Leo\Matcher
Package: Peridot\Leo\Matcher
Located at Matcher/Match.php
Methods summary
public
|
#
__construct( boolean $isMatch, mixed $expected, mixed $actual, boolean $isNegated )
Parameters
- $isMatch
-
- $expected
-
- $actual
-
- $isNegated
-
|
public
boolean
|
#
isMatch( )
Return whether or not a match succeeded.
Return whether or not a match succeeded.
Returns
boolean
|
public
mixed
|
#
getActual( )
Get the actual value used in the match.
Get the actual value used in the match.
Returns
mixed
|
public
mixed
|
#
getExpected( )
Get the expected value used in the match.
Get the expected value used in the match.
Returns
mixed
|
public
boolean
|
#
isNegated( )
Returns whether or not the match was negated.
Returns whether or not the match was negated.
Returns
boolean
|
public
mixed
|
#
setActual( mixed $actual )
Set the actual value used in the match.
Set the actual value used in the match.
Parameters
Returns
mixed $this
|
public
mixed
|
#
setExpected( mixed $expected )
Set the expected value used in the match.
Set the expected value used in the match.
Parameters
Returns
mixed $this
|