diff options
Diffstat (limited to 'ext/spl/tests/iterator_038.phpt')
| -rwxr-xr-x | ext/spl/tests/iterator_038.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/spl/tests/iterator_038.phpt b/ext/spl/tests/iterator_038.phpt new file mode 100755 index 000000000..71f911c57 --- /dev/null +++ b/ext/spl/tests/iterator_038.phpt @@ -0,0 +1,21 @@ +--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=== |
