fix #6: compatibility with 8.2
[awesomized/ext-ion] / tests / Reader / RecursiveIterator.phpt
1 --TEST--
2 ion\Reader/RecursiveIterator
3 --EXTENSIONS--
4 ion
5 --FILE--
6 TEST
7 <?php
8
9 foreach (new RecursiveIteratorIterator(new ion\Reader\Buffer\Reader("[1,2,3,[4,5],6]")) as $r) {
10 echo $r->getDepth(), ":", $r->getType()->name, "\n";
11 }
12 ?>
13 DONE
14 --EXPECT--
15 TEST
16 1:Int
17 1:Int
18 1:Int
19 2:Int
20 2:Int
21 1:Int
22 DONE