spec\PhpSpec\Matcher\IterateAsMatcherSpec::it_does_not_negative_matches_generator_while_iterating_the_same PHP Method

it_does_not_negative_matches_generator_while_iterating_the_same() public method

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