spec\PHPSpec2\Matcher\MatchersCollection::it_will_return_matcher_if_found PHP Method

it_will_return_matcher_if_found() public method

public it_will_return_matcher_if_found ( PHPSpec2\Matcher\MatcherInterface $matcher )
$matcher PHPSpec2\Matcher\MatcherInterface
    function it_will_return_matcher_if_found($matcher)
    {
        $matcher->supports('work', 42, array())->willReturn(true);
        $this->add($matcher);
        $this->find('work', 42, array())->shouldReturn($matcher);
    }