diff options
| author | Marcus Boerger <helly@php.net> | 2006-05-18 21:59:05 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2006-05-18 21:59:05 +0000 |
| commit | 5e5327a7e0e5d3528ce8fb0a507a01ea2cecf484 (patch) | |
| tree | 5a0fd15713598c3af89df963ceb97537a44baf5d | |
| parent | 51ed0ebad816f9e4e29886cd934c054bb2609723 (diff) | |
| download | php-git-5e5327a7e0e5d3528ce8fb0a507a01ea2cecf484.tar.gz | |
- MFH Add new test
| -rwxr-xr-x | ext/spl/tests/iterator_038.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/spl/tests/iterator_038.phpt b/ext/spl/tests/iterator_038.phpt new file mode 100755 index 0000000000..bc39a83c8b --- /dev/null +++ b/ext/spl/tests/iterator_038.phpt @@ -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=== |
