PHPSpec\Matcher\IterateAsMatcher::positiveMatch PHP Method

positiveMatch() public method

public positiveMatch ( $name, $subject, array $arguments )
$arguments array
    public function positiveMatch($name, $subject, array $arguments)
    {
        try {
            $this->iterablesMatcher->match($subject, $arguments[0]);
        } catch (Iterate\SubjectHasFewerElementsException $exception) {
            throw new FailureException('Expected subject to have the same number of elements than matched value, but it has fewer.', 0, $exception);
        } catch (Iterate\SubjectHasMoreElementsException $exception) {
            throw new FailureException('Expected subject to have the same number of elements than matched value, but it has more.', 0, $exception);
        }
    }