Annotation of embedaddon/php/ext/spl/tests/array_009.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SPL: ArrayIterator implementing RecursiveIterator
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $array = array(1, 2 => array(21, 22 => array(221, 222), 23 => array(231)), 3);
                      7: 
                      8: $dir = new RecursiveIteratorIterator(new RecursiveArrayIterator($array), RecursiveIteratorIterator::LEAVES_ONLY);
                      9: 
                     10: foreach ($dir as $file) {
                     11:        print "$file\n";
                     12: }
                     13: 
                     14: ?>
                     15: ===DONE===
                     16: <?php exit(0); ?>
                     17: --EXPECT--
                     18: 1
                     19: 21
                     20: 221
                     21: 222
                     22: 231
                     23: 3
                     24: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>