Class TypeMatcher
TypeMatcher determines if an actual value has the same type as the expected type.
-
Peridot\Leo\Matcher\AbstractMatcher
implements
Peridot\Leo\Matcher\MatcherInterface
-
Peridot\Leo\Matcher\TypeMatcher
Methods summary
public
Peridot\Leo\Matcher\Match
|
#
match( mixed $actual )
Perform a match against an actual value.
Perform a match against an actual value.
Parameters
Returns
Overrides
|
public
boolean
|
#
doMatch( mixed $actual )
Determine if the actual value has the same type as the expected value. Uses the native gettype()
function to compare.
Determine if the actual value has the same type as the expected value. Uses the native gettype()
function to compare.
Parameters
Returns
boolean
|
public
Peridot\Leo\Matcher\Template\TemplateInterface
|
#
getDefaultTemplate( )
Return a default TemplateInterface if none was set.
Return a default TemplateInterface if none was set.
Returns
|
Properties summary
protected
string
|
$type
|
|