Interface MatcherInterface
MatcherInterface defines how an expected value is matched against certain criteria. A matcher is also responsible for returning the TemplateInterface used for formatting match results.
Direct known implementers
Peridot\Leo\Matcher\AbstractMatcherIndirect known implementers
Peridot\Leo\Matcher\CountableMatcher, Peridot\Leo\Matcher\EmptyMatcher, Peridot\Leo\Matcher\LessThanMatcher, Peridot\Leo\Matcher\LessThanOrEqualMatcher, Peridot\Leo\Matcher\NullMatcher, Peridot\Leo\Matcher\PatternMatcher, Peridot\Leo\Matcher\PredicateMatcher, Peridot\Leo\Matcher\PropertyMatcher, Peridot\Leo\Matcher\RangeMatcher, Peridot\Leo\Matcher\SameMatcher, Peridot\Leo\Matcher\SubStringMatcher, Peridot\Leo\Matcher\TrueMatcher, Peridot\Leo\Matcher\EqualMatcher, Peridot\Leo\Matcher\TruthyMatcher, Peridot\Leo\Matcher\TypeMatcher, Peridot\Leo\Matcher\ExceptionMatcher, Peridot\Leo\Matcher\GreaterThanMatcher, Peridot\Leo\Matcher\GreaterThanOrEqualMatcher, Peridot\Leo\Matcher\InclusionMatcher, Peridot\Leo\Matcher\InstanceofMatcher, Peridot\Leo\Matcher\KeysMatcher, Peridot\Leo\Matcher\LengthMatcher
public
boolean
public
mixed
public
Peridot\Leo\Matcher\Match
public
Peridot\Leo\Matcher\Template\TemplateInterface
#
getTemplate( )
Return the TemplateInterface being used by the matcher.
Return the TemplateInterface being used by the matcher.
Returns
public
mixed
#
setAssertion( Peridot\Leo\Assertion
$assertion )
Set the Assertion bound to the matcher. Useful for checking flags from within a matcher.
Set the Assertion bound to the matcher. Useful for checking flags from within a matcher.
Parameters
- $assertion
Returns
mixed
public
mixed
#
$this
setTemplate( Peridot\Leo\Matcher\Template\TemplateInterface
$template )
Set the TemplateInterface to use for formatting match results.
Set the TemplateInterface to use for formatting match results.
Parameters
- $template
Returns
mixed
$this
public
Peridot\Leo\Matcher\Template\TemplateInterface
#
getDefaultTemplate( )
Return a default TemplateInterface if none was set.
Return a default TemplateInterface if none was set.