cvs: php-src /ext/spl/tests iterator_049.phpt iterator_049b.phpt
| From: | Marcus Boerger | Date: | Mon, 24 Jul 2006 23:34:36 +0000 |
| Subject: | cvs: php-src /ext/spl/tests iterator_049.phpt iterator_049b.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39499@lists.php.net to get a copy of this message | ||
helly Mon Jul 24 23:34:36 2006 UTC
Added files:
/php-src/ext/spl/tests iterator_049b.phpt
Modified files:
/php-src/ext/spl/tests iterator_049.phpt
Log:
- Update tests
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/iterator_049.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/spl/tests/iterator_049.phpt
diff -u php-src/ext/spl/tests/iterator_049.phpt:1.1 php-src/ext/spl/tests/iterator_049.phpt:1.2
--- php-src/ext/spl/tests/iterator_049.phpt:1.1 Sun Jul 16 19:50:43 2006
+++ php-src/ext/spl/tests/iterator_049.phpt Mon Jul 24 23:34:35 2006
@@ -6,14 +6,14 @@
<?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 @@
NULL
}
===DONE===
+--UEXPECTF--
+object(ArrayIterator)#%d (1) {
+ [u""]=>
+ NULL
+}
+array(1) {
+ [u""]=>
+ NULL
+}
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/iterator_049b.phpt?view=markup&rev=1.1
Index: php-src/ext/spl/tests/iterator_049b.phpt
+++ php-src/ext/spl/tests/iterator_049b.phpt
--TEST--
SPL: ArrayIterator with NULL key
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
$ar = new ArrayIterator(array(
NULL=>1,
"\0"=>2,
"\0\0"=>3,
"\0\0\0"=>4,
"\0*"=>5,
"\0*\0"=>6,
));
@var_dump($ar);
var_dump($ar->getArrayCopy());
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(ArrayIterator)#%d (6) {
[""]=>
int(1)
["
int(2)
["
int(3)
["
int(4)
["
int(5)
["
int(6)
}
array(6) {
[""]=>
int(1)
["
int(2)
["
int(3)
["
int(4)
["
int(5)
["
int(6)
}
===DONE===
--UEXPECTF--
object(ArrayIterator)#%d (6) {
[u""]=>
int(1)
[u"
int(2)
[u"
int(3)
[u"
int(4)
[u"
int(5)
[u"
int(6)
}
array(6) {
[u""]=>
int(1)
[u"
int(2)
[u"
int(3)
[u"
int(4)
[u"
int(5)
[u"
int(6)
}
===DONE===