diff options
Diffstat (limited to 'ext/spl/tests/iterator_040.phpt')
-rw-r--r-- | ext/spl/tests/iterator_040.phpt | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/ext/spl/tests/iterator_040.phpt b/ext/spl/tests/iterator_040.phpt index ae00c81df3..1e8bd55764 100644 --- a/ext/spl/tests/iterator_040.phpt +++ b/ext/spl/tests/iterator_040.phpt @@ -5,10 +5,10 @@ SPL: RecursiveFilterIterator class MyRecursiveFilterIterator extends RecursiveFilterIterator { - function accept() - { - return true; - } + function accept() + { + return true; + } } $ar = array(1, array(21, 22), 3); @@ -18,15 +18,13 @@ $it = new RecursiveIteratorIterator($it); foreach($it as $k => $v) { - echo "===\n"; - var_dump($it->getDepth()); - var_dump($k); - var_dump($v); + echo "===\n"; + var_dump($it->getDepth()); + var_dump($k); + var_dump($v); } ?> -===DONE=== -<?php exit(0); ?> --EXPECT-- === int(0) @@ -44,4 +42,3 @@ int(22) int(0) int(2) int(3) -===DONE=== |