spec\PhpSpec\Matcher\Iterate\IterablesMatcherSpec::it_should_throw_an_invalid_argument_exception_if_subject_is_not_iterable PHP Метод

it_should_throw_an_invalid_argument_exception_if_subject_is_not_iterable() публичный Метод

    function it_should_throw_an_invalid_argument_exception_if_subject_is_not_iterable()
    {
        $this->shouldThrow(new \InvalidArgumentException('Subject value should be an array or implement \\Traversable.'))->during('match', ['not iterable', []]);
        $this->shouldThrow(new \InvalidArgumentException('Subject value should be an array or implement \\Traversable.'))->during('match', [9, []]);
        $this->shouldThrow(new \InvalidArgumentException('Subject value should be an array or implement \\Traversable.'))->during('match', [new \stdClass(), []]);
    }