Eloquent\Phony\Integration\PhakeMatcherDriver::wrapMatcher PHP Method

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.
    public function wrapMatcher($matcher)
    {
        if (is_a($matcher, 'Phake_Matchers_AnyParameters')) {
            return $this->wildcard;
        }
        return new WrappedMatcher($matcher);
    }