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