PHP Class Eloquent\Phony\Integration\PhakeMatcherDriver

Inheritance: implements Eloquent\Phony\Matcher\MatcherDriver
Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( WildcardMatcher $wildcard ) Construct a new Phake matcher driver.
instance ( ) : Eloquent\Phony\Matcher\MatcherDriver Get the static instance of this driver.
isAvailable ( ) : boolean Returns true if this matcher driver's classes or interfaces exist.
matcherClassNames ( ) : array Get the supported matcher class names.
wrapMatcher ( object $matcher ) : Eloquent\Phony\Matcher\Matchable Wrap the supplied third party matcher.

Method Details

__construct() public méthode

Construct a new Phake matcher driver.
public __construct ( WildcardMatcher $wildcard )
$wildcard Eloquent\Phony\Matcher\WildcardMatcher The wildcard matcher to use.

instance() public static méthode

Get the static instance of this driver.
public static instance ( ) : Eloquent\Phony\Matcher\MatcherDriver
Résultat Eloquent\Phony\Matcher\MatcherDriver The static driver.

isAvailable() public méthode

Returns true if this matcher driver's classes or interfaces exist.
public isAvailable ( ) : boolean
Résultat boolean True if available.

matcherClassNames() public méthode

Get the supported matcher class names.
public matcherClassNames ( ) : array
Résultat array

wrapMatcher() public méthode

Wrap the supplied third party matcher.
public wrapMatcher ( object $matcher ) : Eloquent\Phony\Matcher\Matchable
$matcher object The matcher to wrap.
Résultat Eloquent\Phony\Matcher\Matchable The wrapped matcher.