Class LengthMatcher
LengthMatcher determines if an actual array, string, or Countable has a length equivalent
to the expected value.
-
Peridot\Leo\Matcher\AbstractMatcher
implements
Peridot\Leo\Matcher\MatcherInterface
-
Peridot\Leo\Matcher\LengthMatcher
Methods summary
public
Peridot\Leo\Matcher\Template\TemplateInterface
|
#
getDefaultTemplate( )
Return a default TemplateInterface if none was set.
Return a default TemplateInterface if none was set.
Returns
|
protected
mixed
|
#
doMatch( string|array|Countable $actual )
Match the length of the countable interface or string against
the expected value.
Match the length of the countable interface or string against
the expected value.
Parameters
Returns
mixed
|
protected
boolean
|
#
isCountable( mixed $actual )
Determine if the native count() function can return a valid result
on the actual value.
Determine if the native count() function can return a valid result
on the actual value.
Parameters
Returns
boolean
|
Properties summary
protected
integer
|
$count
|
|