php-src/ext/spl/tests/iterator_049.phpt

41 lines
575 B
Plaintext
Raw Normal View History

--TEST--
SPL: ArrayIterator with NULL key
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
$ar = new ArrayIterator(array(NULL=>NULL));
2006-07-24 23:34:35 +00:00
@var_dump($ar);
var_dump($ar->getArrayCopy());
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
2006-07-24 23:34:35 +00:00
object(ArrayIterator)#%d (1) {
["storage":"ArrayIterator":private]=>
array(1) {
[""]=>
NULL
}
}
array(1) {
[""]=>
NULL
}
===DONE===
2006-07-24 23:34:35 +00:00
--UEXPECTF--
object(ArrayIterator)#%d (1) {
[u"storage":u"ArrayIterator":private]=>
array(1) {
[u""]=>
NULL
}
2006-07-24 23:34:35 +00:00
}
array(1) {
[u""]=>
NULL
}
===DONE===