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);
}