Méthode | Description | |
---|---|---|
__construct ( Eloquent\Phony\Matcher\Matcher $anyMatcher, |
Construct a new matcher factory. | |
adapt ( mixed $value ) : Eloquent\Phony\Matcher\Matcher | Create a new matcher for the supplied value. | |
adaptAll ( array $values ) : array |
Create new matchers for the all supplied values. | |
addDefaultMatcherDrivers ( ) | Add the default matcher drivers. | |
addMatcherDriver ( Eloquent\Phony\Matcher\MatcherDriver $driver ) | Add a matcher driver. | |
any ( ) : Eloquent\Phony\Matcher\Matcher | Create a new matcher that matches anything. | |
drivers ( ) : array |
Get the matcher drivers. | |
equalTo ( mixed $value, boolean $useSubstitution = false ) : Eloquent\Phony\Matcher\Matcher | Create a new equal to matcher. | |
instance ( ) : |
Get the static instance of this factory. | |
isMatcher ( mixed $value ) : boolean | Returns true if the supplied value is a matcher. | |
wildcard ( mixed $value = null, integer $minimumArguments, integer | null $maximumArguments = null ) : |
Create a new matcher that matches multiple arguments. |
public __construct ( Eloquent\Phony\Matcher\Matcher $anyMatcher, |
||
$anyMatcher | Eloquent\Phony\Matcher\Matcher | A matcher that matches any value. |
$wildcardAnyMatcher | A matcher that matches any number of arguments of any value. | |
$exporter | Eloquent\Phony\Exporter\Exporter | The exporter to use. |
public addDefaultMatcherDrivers ( ) |
public addMatcherDriver ( Eloquent\Phony\Matcher\MatcherDriver $driver ) | ||
$driver | Eloquent\Phony\Matcher\MatcherDriver | The matcher driver. |
public any ( ) : Eloquent\Phony\Matcher\Matcher | ||
Résultat | Eloquent\Phony\Matcher\Matcher | The newly created matcher. |
public static instance ( ) : |
||
Résultat | The static factory. |
public wildcard ( mixed $value = null, integer $minimumArguments, integer | null $maximumArguments = null ) : |
||
$value | mixed | The value to check for each argument. |
$minimumArguments | integer | The minimum number of arguments. |
$maximumArguments | integer | null | The maximum number of arguments. |
Résultat | The newly created wildcard matcher. |