Spectator::Matchers::PatternMatcher(ExpectedType)
Inherits Spectator::Matchers::ValueMatcher / Spectator::Matchers::StandardMatcher / Spectator::Matchers::Matcher / Struct / Value / Object
Common matcher that tests whether a value matches another.
The values are compared with the === operator.
This is the same as CaseMatcher, but the operands are flipped.
Constructors
Creates the value matcher. The expected value is stored for later use.
Instance methods
description
Short text about the matcher's purpose. This explains what condition satisfies the matcher. The description is used when the one-liner syntax is used.