1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/spl/tests/iterator_038.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

18 lines
254 B
PHP

--TEST--
SPL: RoRewindIterator and string keys
--FILE--
<?php
foreach(new NoRewindIterator(new ArrayIterator(array('Hello'=>0, 'World'=>1))) as $k => $v)
{
var_dump($v);
var_dump($k);
}
?>
--EXPECT--
int(0)
string(5) "Hello"
int(1)
string(5) "World"