PHP Class Eloquent\Phony\Phpunit\PhpunitMatcherDriver

Inheritance: implements Eloquent\Phony\Matcher\MatcherDriver
Datei anzeigen Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
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

instance() public static method

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

isAvailable() public method

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

matcherClassNames() public method

Get the supported matcher class names.
public matcherClassNames ( ) : array
return array

wrapMatcher() public method

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