Namespace Peridot\Leo\Matcher
Namespaces summary Classes summaryCountableMatcher a matcher is a matcher that matches numeric values, or reduces a countable value - like array, string, or Countable - to a single numeric value.
EqualMatcher determines if the expected value and the actual value are loosely equal. Peroforms an == comparison.
ExceptionMatcher executes a callable and determines if an exception of a given type was thrown. It optionally matches the exception message.
GreaterThanOrEqualMatcher matches that the actual value is greater than or equal to the expected value.
InstanceofMatcher determines if the actual value is an instance of the expected class string.
KeysMatcher determines if the actual array or object has the expected keys. If the Assertion has a 'contain' flag set, it will check if the expected keys are included in the object or array.
LengthMatcher determines if an actual array, string, or Countable has a length equivalent to the expected value.
PredicateMatcher executes a function with the actual value. The PredicateMatcher returns the result of that function call as a Match result.
PropertyMatcher determines if the actual array or object has the expected property, and optionally matches an expected value for that property.
RangeMatcher matches a number or the length of a countable between a lower and upper bound - both of which are inclusive.
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.