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
- Extended by Peridot\Leo\Matcher\LengthMatcher
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
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
- $actual
Returns
boolean