Annotation of embedaddon/php/ext/spl/tests/spl_iterator_caching_getcache_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: Caching iterator getCache failure
3: --CREDITS--
4: Lukasz 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);
10: try {
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--
20: Exception raised
21: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>