spec\PhpSpec\Matcher\Iterate\IterablesMatcherSpec::it_should_throw_an_exception_if_subject_element_does_not_match_the_expected_one PHP Method

it_should_throw_an_exception_if_subject_element_does_not_match_the_expected_one() public method

    function it_should_throw_an_exception_if_subject_element_does_not_match_the_expected_one()
    {
        $this->shouldThrow(new SubjectElementDoesNotMatchException(0, '"a"', '"b"', '"a"', '"c"'))->during('match', [['a' => 'b'], ['a' => 'c']]);
        $this->shouldThrow(new SubjectElementDoesNotMatchException(0, '"a"', '"b"', '"c"', '"b"'))->during('match', [['a' => 'b'], ['c' => 'b']]);
        $this->shouldThrow(new SubjectElementDoesNotMatchException(1, '"c"', '"d"', '"c"', '"e"'))->during('match', [['a' => 'b', 'c' => 'd'], ['a' => 'b', 'c' => 'e']]);
    }