xref: /PHP-7.2/ext/spl/tests/iterator_049.phpt (revision 610c7fbe)
1--TEST--
2SPL: ArrayIterator with NULL key
3--FILE--
4<?php
5
6$ar = new ArrayIterator(array(NULL=>NULL));
7@var_dump($ar);
8var_dump($ar->getArrayCopy());
9
10?>
11===DONE===
12<?php exit(0); ?>
13--EXPECTF--
14object(ArrayIterator)#%d (1) {
15  ["storage":"ArrayIterator":private]=>
16  array(1) {
17    [""]=>
18    NULL
19  }
20}
21array(1) {
22  [""]=>
23  NULL
24}
25===DONE===
26