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===DONE=== 12--EXPECT-- 13RecursiveCachingIterator::__construct() expects parameter 1 to be RecursiveIterator, object given 14===DONE=== 15