Annotation of embedaddon/php/ext/spl/tests/recursiveiteratoriterator_getsubiterator_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: RecursiveIteratorIterator::getSubIterator() expects at most 1 parameter
3: --CREDITS--
4: Matt Raines matt@raines.me.uk
5: #testfest London 2009-05-09
6: --FILE--
7: <?php
8: $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator(array()));
9: $iterator->getSubIterator();
10: $iterator->getSubIterator(0);
11: $iterator->getSubIterator(0, 0);
12: ?>
13: --EXPECTF--
14: Warning: RecursiveIteratorIterator::getSubIterator() expects at most 1 parameter, 2 given in %s on line 5
15:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>