spec\PhpSpec\Runner\MatcherManagerSpec::it_searches_in_registered_matchers PHP Метод

it_searches_in_registered_matchers() публичный Метод

public it_searches_in_registered_matchers ( PhpSpec\Matcher\Matcher $matcher )
$matcher PhpSpec\Matcher\Matcher
    function it_searches_in_registered_matchers(Matcher $matcher)
    {
        $matcher->getPriority()->willReturn(0);
        $matcher->supports('startWith', 'hello, world', array('hello'))->willReturn(true);
        $this->add($matcher);
        $this->find('startWith', 'hello, world', array('hello'))->shouldReturn($matcher);
    }