spec\PhpSpec\Matcher\Iterate\IterablesMatcherSpec::it_should_not_throw_any_exception_if_subject_iterates_as_expected PHP 메소드

it_should_not_throw_any_exception_if_subject_iterates_as_expected() 공개 메소드

    function it_should_not_throw_any_exception_if_subject_iterates_as_expected()
    {
        $this->shouldNotThrow()->during('match', [['a' => 'b', 'c' => 'd'], ['a' => 'b', 'c' => 'd']]);
        $this->shouldNotThrow()->during('match', [['a' => 'b', 'c' => 'd'], new \ArrayIterator(['a' => 'b', 'c' => 'd'])]);
        $this->shouldNotThrow()->during('match', [new \ArrayIterator(['a' => 'b', 'c' => 'd']), ['a' => 'b', 'c' => 'd']]);
        $this->shouldNotThrow()->during('match', [['a' => 'b', 'c' => 'd'], new \ArrayObject(['a' => 'b', 'c' => 'd'])]);
        $this->shouldNotThrow()->during('match', [new \ArrayObject(['a' => 'b', 'c' => 'd']), ['a' => 'b', 'c' => 'd']]);
        $this->shouldNotThrow()->during('match', [$this->createGeneratorReturningArray(['a' => 'b', 'c' => 'd']), ['a' => 'b', 'c' => 'd']]);
        $this->shouldNotThrow()->during('match', [['a' => 'b', 'c' => 'd'], $this->createGeneratorReturningArray(['a' => 'b', 'c' => 'd'])]);
    }