PHPSpec2\Console\Command\RunCommand::createMatchersCollection PHP Method

createMatchersCollection() protected method

protected createMatchersCollection ( PHPSpec2\Formatter\Presenter\PresenterInterface $presenter, ArgumentsUnwrapper $unwrapper )
$presenter PHPSpec2\Formatter\Presenter\PresenterInterface
$unwrapper PHPSpec2\Wrapper\ArgumentsUnwrapper
    protected function createMatchersCollection(Presenter\PresenterInterface $presenter, ArgumentsUnwrapper $unwrapper)
    {
        $matchers = new Matcher\MatchersCollection();
        $matchers->add(new Matcher\IdentityMatcher($presenter));
        $matchers->add(new Matcher\ComparisonMatcher($presenter));
        $matchers->add(new Matcher\ThrowMatcher($unwrapper, $presenter));
        $matchers->add(new Matcher\CountMatcher($presenter));
        $matchers->add(new Matcher\TypeMatcher($presenter));
        $matchers->add(new Matcher\ObjectStateMatcher($presenter));
        return $matchers;
    }