]> granicus.if.org Git - php/commitdiff
- Update tests
authorMarcus Boerger <helly@php.net>
Mon, 24 Jul 2006 23:34:35 +0000 (23:34 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 24 Jul 2006 23:34:35 +0000 (23:34 +0000)
ext/spl/tests/iterator_049.phpt
ext/spl/tests/iterator_049b.phpt [new file with mode: 0755]

index 9a5d4029f8db6eb050c236b1edff5a2de56c650e..d9950f12b9e1ce9efa4467588892dc21729073f0 100755 (executable)
@@ -6,14 +6,14 @@ SPL: ArrayIterator with NULL key
 <?php
 
 $ar = new ArrayIterator(array(NULL=>NULL));
-var_dump($ar);
+@var_dump($ar);
 var_dump($ar->getArrayCopy());
 
 ?>
 ===DONE===
 <?php exit(0); ?>
 --EXPECTF--
-object(ArrayIterator)#1 (1) {
+object(ArrayIterator)#%d (1) {
   [""]=>
   NULL
 }
@@ -22,3 +22,13 @@ array(1) {
   NULL
 }
 ===DONE===
+--UEXPECTF--
+object(ArrayIterator)#%d (1) {
+  [u""]=>
+  NULL
+}
+array(1) {
+  [u""]=>
+  NULL
+}
+===DONE===
diff --git a/ext/spl/tests/iterator_049b.phpt b/ext/spl/tests/iterator_049b.phpt
new file mode 100755 (executable)
index 0000000..9e5396d
Binary files /dev/null and b/ext/spl/tests/iterator_049b.phpt differ