spec\PhpSpec\Matcher\TraversableKeyValueMatcherSpec::it_does_not_positive_match_generator_without_specified_key_and_value PHP Method

it_does_not_positive_match_generator_without_specified_key_and_value() public method

    function it_does_not_positive_match_generator_without_specified_key_and_value()
    {
        $this->shouldThrow(FailureException::class)->during('positiveMatch', ['haveKeyWithValue', $this->createGeneratorReturningArray(['a' => 'b', 'c' => 'd']), ['a', 'c']]);
        $this->shouldThrow(FailureException::class)->during('positiveMatch', ['haveKeyWithValue', $this->createGeneratorReturningArray(['a' => 'b', 'c' => 'd']), ['b', 'd']]);
        $this->shouldThrow(FailureException::class)->during('positiveMatch', ['haveKeyWithValue', $this->createGeneratorReturningArray(['a' => 'b', 'c' => 'd']), ['b', 'a']]);
    }