PHP Class Eloquent\Phony\Matcher\MatcherVerifier

Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat MatcherResult The result of matching.

instance() public static méthode

Get the static instance of this verifier.
public static instance ( ) : MatcherVerifier
Résultat MatcherVerifier The static verifier.

matches() public méthode

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