--TEST-- SPL: RecursiveIteratorIterator, getCallChildren --CREDITS-- Sean Burlington www.practicalweb.co.uk TestFest London May 2009 --FILE-- current()); $test->next(); var_dump($test->current()); try { $output = $test->callGetChildren(); } catch (TypeError $exception) { $output = null; echo $exception->getMessage() . "\n"; } var_dump($output); ?> --EXPECT-- array(3) { [0]=> int(7) [1]=> int(8) [2]=> int(9) } int(7) ArrayIterator::__construct(): Argument #1 ($array) must be of type array, int given NULL