From: Marcus Boerger Date: Thu, 4 Nov 2004 22:07:18 +0000 (+0000) Subject: - Add new test X-Git-Tag: RELEASE_0_2~731 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b76d82fe3f81970178a131e3f2119bbffbeada2;p=php - Add new test --- diff --git a/ext/spl/tests/iterator_015.phpt b/ext/spl/tests/iterator_015.phpt new file mode 100755 index 0000000000..a617e64638 --- /dev/null +++ b/ext/spl/tests/iterator_015.phpt @@ -0,0 +1,75 @@ +--TEST-- +SPL: RecursiveIteratorIterator and beginChildren/endChildren +--FILE-- +current()); + } + + function getChildren() + { + return new RecursiveArrayIterator($this->current()); + } +} + +class RecursiveArrayIteratorIterator extends RecursiveIteratorIterator +{ + function rewind() + { + echo "