1--TEST--
2RecursiveIteratorIterator constructor should thrown if IteratorAggregate does not return Iterator
3--FILE--
4<?php
5
6class MyIteratorAggregate implements IteratorAggregate {
7    function getIterator() {
8        return null;
9    }
10}
11
12try {
13    new RecursiveIteratorIterator(new MyIteratorAggregate);
14} catch (LogicException $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20MyIteratorAggregate::getIterator() must return an object that implements Traversable
21