PHPSpec\Matcher\TraversableKeyValueMatcher::matches PHP Method

matches() protected method

protected matches ( $subject, array $arguments )
$arguments array
    protected function matches($subject, array $arguments)
    {
        foreach ($subject as $key => $value) {
            if ($key === $arguments[0] && $value === $arguments[1]) {
                return true;
            }
        }
        return false;
    }