1--TEST--
2SPL: RecursiveTreeIterator methods
3--INI--
4error_reporting=E_ALL&~E_NOTICE
5--FILE--
6<?php
7
8$ary = array(
9    0 => array(
10        "a",
11        1,
12    ),
13    "a" => array(
14        2,
15        "b",
16        3 => array(
17            4,
18            "c",
19        ),
20        "3" => array(
21            4,
22            "c",
23        ),
24    ),
25);
26
27$it = new RecursiveTreeIterator(new RecursiveArrayIterator($ary));
28foreach($it as $k => $v) {
29    echo '[' . $it->key() . '] => ' . $it->getPrefix() . $it->getEntry() . $it->getPostfix() . "\n";
30}
31?>
32--EXPECT--
33[0] => |-Array
34[0] => | |-a
35[1] => | \-1
36[a] => \-Array
37[0] =>   |-2
38[1] =>   |-b
39[3] =>   \-Array
40[0] =>     |-4
41[1] =>     \-c
42