1--TEST-- 2SPL: Caching iterator count() cache contents 3--CREDITS-- 4Lukasz Andrzejak meltir@meltir.com 5#testfest London 2009-05-09 6--FILE-- 7<?php 8$i = new ArrayIterator(array(1,1,1,1,1)); 9$i = new CachingIterator($i,CachingIterator::FULL_CACHE); 10foreach ($i as $value) { 11 echo $i->count()."\n"; 12} 13?> 14--EXPECT-- 151 162 173 184 195 20