]> granicus.if.org Git - php/commitdiff
- This test fails right now and requires a zend API change to fix
authorMarcus Boerger <helly@php.net>
Sun, 16 Jul 2006 19:50:43 +0000 (19:50 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 16 Jul 2006 19:50:43 +0000 (19:50 +0000)
ext/spl/tests/iterator_049.phpt [new file with mode: 0755]

diff --git a/ext/spl/tests/iterator_049.phpt b/ext/spl/tests/iterator_049.phpt
new file mode 100755 (executable)
index 0000000..9a5d402
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+SPL: ArrayIterator with NULL key
+--SKIPIF--
+<?php if (!extension_loaded("spl")) print "skip"; ?>
+--FILE--
+<?php
+
+$ar = new ArrayIterator(array(NULL=>NULL));
+var_dump($ar);
+var_dump($ar->getArrayCopy());
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+object(ArrayIterator)#1 (1) {
+  [""]=>
+  NULL
+}
+array(1) {
+  [""]=>
+  NULL
+}
+===DONE===