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

it_positive_matches_generator_while_iterating_the_same() public method

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