mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
19 lines
320 B
PHP
19 lines
320 B
PHP
--TEST--
|
|
SPL: Caching iterator count() cache contents
|
|
--CREDITS--
|
|
Lukasz Andrzejak meltir@meltir.com
|
|
#testfest London 2009-05-09
|
|
--FILE--
|
|
<?php
|
|
$i = new ArrayIterator(array(1,1,1,1,1));
|
|
$i = new CachingIterator($i,CachingIterator::FULL_CACHE);
|
|
foreach ($i as $value) {
|
|
echo $i->count()."\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|