fix #6: compatibility with 8.2
[awesomized/ext-ion] / tests / unserialize.phpt
1 --TEST--
2 ion\Unserializer\Unserializer
3 --EXTENSIONS--
4 ion
5 --FILE--
6 TEST
7 <?php
8 $o1 = ion\unserialize("[foo,{p:1}]");
9 $o2 = ion\unserialize("[foo,{p:1}]", $u1 = new ion\Unserializer\Unserializer);
10 if ($o1 != $o2) {
11 var_dump($o1, $o2);
12 }
13 var_dump($u1);
14 ?>
15 DONE
16 --EXPECTF--
17 TEST
18 object(ion\Unserializer\Unserializer)#%d (3) {
19 ["multiSequence"]=>
20 bool(false)
21 ["callMagicUnserialize"]=>
22 bool(true)
23 ["callCustomUnserialize"]=>
24 NULL
25 }
26 DONE