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

it_negative_matches_generator_while_not_iterating_the_same() public method

    function it_negative_matches_generator_while_not_iterating_the_same()
    {
        $this->shouldNotThrow()->during('negativeMatch', ['iterateAs', $this->createGeneratorReturningArray(['a' => 'b', 'c' => 'd']), [['a' => 'b', 'c' => 'e']]]);
        $this->shouldNotThrow()->during('negativeMatch', ['iterateAs', $this->createGeneratorReturningArray(['a' => 'b', 'c' => 'd']), [$this->createGeneratorReturningArray(['a' => 'b', 'c' => 'e'])]]);
    }