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

Class Match

A Match is the result of MatcherInterface::match($actual).

Namespace: Peridot\Leo\Matcher
Package: Peridot\Leo\Matcher
Located at Matcher/Match.php
Methods summary
public
# __construct( boolean $isMatch, mixed $expected, mixed $actual, boolean $isNegated )

Parameters

$isMatch
$expected
$actual
$isNegated
public boolean
# isMatch( )

Return whether or not a match succeeded.

Return whether or not a match succeeded.

Returns

boolean
public mixed
# getActual( )

Get the actual value used in the match.

Get the actual value used in the match.

Returns

mixed
public mixed
# getExpected( )

Get the expected value used in the match.

Get the expected value used in the match.

Returns

mixed
public boolean
# isNegated( )

Returns whether or not the match was negated.

Returns whether or not the match was negated.

Returns

boolean
public mixed
# setActual( mixed $actual )

Set the actual value used in the match.

Set the actual value used in the match.

Parameters

$actual

Returns

mixed
$this
public mixed
# setExpected( mixed $expected )

Set the expected value used in the match.

Set the expected value used in the match.

Parameters

$expected

Returns

mixed
$this
Properties summary
protected boolean $match
#
protected mixed $expected
#
protected mixed $actual
#
protected boolean $isNegated
#
Leo API documentation generated by ApiGen