Overview

Namespaces

  • None
  • Peridot
    • Leo
      • Formatter
      • Interfaces
        • Assert
      • Matcher
        • Template
      • ObjectPath
      • Responder
  • PHP

Classes

  • AbstractMatcher
  • CountableMatcher
  • EmptyMatcher
  • EqualMatcher
  • ExceptionMatcher
  • GreaterThanMatcher
  • GreaterThanOrEqualMatcher
  • InclusionMatcher
  • InstanceofMatcher
  • KeysMatcher
  • LengthMatcher
  • LessThanMatcher
  • LessThanOrEqualMatcher
  • Match
  • NullMatcher
  • PatternMatcher
  • PredicateMatcher
  • PropertyMatcher
  • RangeMatcher
  • SameMatcher
  • SubStringMatcher
  • TrueMatcher
  • TruthyMatcher
  • TypeMatcher

Interfaces

  • MatcherInterface
  • Overview
  • Namespace
  • Class
  • Tree

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\AbstractMatcher

Indirect 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
Namespace: Peridot\Leo\Matcher
Package: Peridot\Leo\Matcher
Located at Matcher/MatcherInterface.php
Methods summary
public boolean
# isNegated( )

Returns whether or not the matcher is negated. A negated matcher negates the results of a match.

Returns whether or not the matcher is negated. A negated matcher negates the results of a match.

Returns

boolean
public mixed
# invert( )

Inverts a matcher. If a matcher is not negated, it will become negated. If a matcher is negated, it will no longer be negated.

Inverts a matcher. If a matcher is not negated, it will become negated. If a matcher is negated, it will no longer be negated.

Returns

mixed
$this
public Peridot\Leo\Matcher\Match
# match( mixed $actual )

Perform a match against an actual value.

Perform a match against an actual value.

Parameters

$actual

Returns

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

Peridot\Leo\Matcher\Template\TemplateInterface
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
# 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.

Returns

Peridot\Leo\Matcher\Template\TemplateInterface
Leo API documentation generated by ApiGen