xref: /PHP-5.3/ext/spl/tests/iterator_038.phpt (revision 610c7fbe)
1--TEST--
2SPL: RoRewindIterator and string keys
3--FILE--
4<?php
5
6foreach(new NoRewindIterator(new ArrayIterator(array('Hello'=>0, 'World'=>1))) as $k => $v)
7{
8	var_dump($v);
9	var_dump($k);
10}
11
12?>
13===DONE===
14--EXPECT--
15int(0)
16string(5) "Hello"
17int(1)
18string(5) "World"
19===DONE===
20