1--TEST-- 2SPL: Caching iterator getCache failure 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); 10try { 11 $i->getCache(); 12 echo "Should have caused an exception"; 13} catch (BadMethodCallException $e) { 14 echo "Exception raised\n"; 15} 16 17?> 18===DONE=== 19--EXPECT-- 20Exception raised 21===DONE===