xref: /php-src/ext/spl/tests/iterator_049.phpt (revision a555cc0b)
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--EXPECTF--
12object(ArrayIterator)#%d (1) {
13  ["storage":"ArrayIterator":private]=>
14  array(1) {
15    [""]=>
16    NULL
17  }
18}
19array(1) {
20  [""]=>
21  NULL
22}
23