PHP Class Eloquent\Phony\Matcher\MatcherVerifier

Datei anzeigen Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
explain ( array $matchers, array $arguments ) : MatcherResult Explain which of the supplied arguments match which of the supplied matchers.
instance ( ) : MatcherVerifier Get the static instance of this verifier.
matches ( array $matchers, array $arguments ) : boolean Verify that the supplied arguments match the supplied matchers.

Method Details

explain() public method

Explain which of the supplied arguments match which of the supplied matchers.
public explain ( array $matchers, array $arguments ) : MatcherResult
$matchers array
$arguments array The arguments.
return MatcherResult The result of matching.

instance() public static method

Get the static instance of this verifier.
public static instance ( ) : MatcherVerifier
return MatcherVerifier The static verifier.

matches() public method

Verify that the supplied arguments match the supplied matchers.
public matches ( array $matchers, array $arguments ) : boolean
$matchers array
$arguments array The arguments.
return boolean True if the arguments match.