1--TEST--
2SPL: RecursiveTreeIterator(non-traversable)
3--FILE--
4<?php
5try {
6    new RecursiveTreeIterator(new ArrayIterator(array()));
7} catch (TypeError $e) {
8    echo $e->getMessage(), "\n";
9}
10?>
11--EXPECT--
12RecursiveCachingIterator::__construct(): Argument #1 ($iterator) must be of type RecursiveIterator, ArrayIterator given
13