/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/iterator_071.phpt
--TEST-- SPL: RecursiveIteratorIterator - Test where the case is RS_SELF and mode is CHILD_FIRST --FILE-- <?php $arr = array(array(1,2),2); $arrOb = new ArrayObject($arr); $recArrIt = new RecursiveArrayIterator($arrOb->getIterator()); class MyRecursiveIteratorIterator extends RecursiveIteratorIterator { function nextelement() { echo __METHOD__."\n"; } } $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::CHILD_FIRST); foreach ($recItIt as $key => $val) echo "$key\n"; ?> --EXPECT-- MyRecursiveIteratorIterator::nextelement 0 MyRecursiveIteratorIterator::nextelement 1 MyRecursiveIteratorIterator::nextelement 0 MyRecursiveIteratorIterator::nextelement 1
Copyright ©2k19 -
Hexid
|
Tex7ure