PHPSpec2\Matcher\MatchersCollection::find PHP Method

find() public method

public find ( $keyword, $subject, array $arguments )
$arguments array
    public function find($keyword, $subject, array $arguments)
    {
        foreach ($this->getAll() as $matcher) {
            if (true === $matcher->supports($keyword, $subject, $arguments)) {
                return $matcher;
            }
        }
        throw new MatcherNotFoundException($keyword);
    }
MatchersCollection