1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00

- MFH Add new test

This commit is contained in:
Marcus Boerger
2006-05-18 21:59:05 +00:00
parent 51ed0ebad8
commit 5e5327a7e0
+27
View File
@@ -0,0 +1,27 @@
--TEST--
SPL: RoRewindIterator and string keys
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
foreach(new NoRewindIterator(new ArrayIterator(array('Hello'=>0, 'World'=>1))) as $k => $v)
{
var_dump($v);
var_dump($k);
}
?>
===DONE===
--EXPECT--
int(0)
string(5) "Hello"
int(1)
string(5) "World"
===DONE===
--UEXPECT--
int(0)
unicode(5) "Hello"
int(1)
unicode(5) "World"
===DONE===