Annotation of embedaddon/php/ext/spl/tests/limititerator_seek.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SPL: LimitIterator seek() arguments
                      3: --CREDITS--
                      4: Roshan Abraham (roshanabrahams@gmail.com)
                      5: TestFest London May 2009
                      6: --FILE--
                      7: <?php
                      8: 
                      9: $a = array(1,2,3);
                     10: $lt = new LimitIterator(new ArrayIterator($a));
                     11: 
                     12: $lt->seek(1,1); // Should throw a warning as seek expects only 1 argument
                     13: 
                     14: ?>
                     15: --EXPECTF--
                     16: 
                     17: Warning: LimitIterator::seek() expects exactly 1 parameter, 2 given in %s on line %d
                     18: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>