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 (InvalidArgumentException $ilae){
19  $output = null;
20  print "invalid argument exception\n";
21}
22var_dump($output);
23
24
25?>
26===DONE===
27--EXPECT--
28  array(3) {
29  [0]=>
30  int(7)
31  [1]=>
32  int(8)
33  [2]=>
34  int(9)
35}
36int(7)
37invalid argument exception
38NULL
39===DONE===
40