mirror of
https://github.com/php/php-src.git
synced 2026-04-14 19:41:05 +02:00
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
31 lines
389 B
PHP
31 lines
389 B
PHP
--TEST--
|
|
SPL: NoRewindIterator
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "===Current===\n";
|
|
|
|
$it = new NoRewindIterator(new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C')));
|
|
|
|
echo $it->key() . '=>' . $it->current() . "\n";
|
|
|
|
echo "===Next===\n";
|
|
|
|
$it->next();
|
|
|
|
echo "===Foreach===\n";
|
|
|
|
foreach($it as $key=>$val)
|
|
{
|
|
echo "$key=>$val\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
===Current===
|
|
0=>A
|
|
===Next===
|
|
===Foreach===
|
|
1=>B
|
|
2=>C
|