1--TEST-- 2SPL: RecursiveIteratorIterator, getCallChildren 3--CREDITS-- 4Sean Burlington www.practicalweb.co.uk 5TestFest London May 2009 6--FILE-- 7<?php 8 //line 681 ... 9 $array = array(array(7,8,9),1,2,3,array(4,5,6)); 10$recursiveArrayIterator = new RecursiveArrayIterator($array); 11$test = new RecursiveIteratorIterator($recursiveArrayIterator); 12 13var_dump($test->current()); 14$test->next(); 15var_dump($test->current()); 16try { 17 $output = $test->callGetChildren(); 18} catch (TypeError $exception) { 19 $output = null; 20 echo $exception->getMessage() . "\n"; 21} 22var_dump($output); 23 24 25?> 26--EXPECT-- 27array(3) { 28 [0]=> 29 int(7) 30 [1]=> 31 int(8) 32 [2]=> 33 int(9) 34} 35int(7) 36ArrayIterator::__construct(): Argument #1 ($array) must be of type array, int given 37NULL 38