1--TEST-- 2SPL: RecursiveIteratorIterator::getSubIterator() returns NULL if there's no current element 3--CREDITS-- 4Matt Raines matt@raines.me.uk 5#testfest London 2009-05-09 6--FILE-- 7<?php 8$sample_array = array(1); 9 10$iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($sample_array)); 11 12$iterator->next(); 13var_dump(is_null($iterator->getSubIterator())); 14$iterator->next(); 15var_dump(is_null($iterator->getSubIterator())); 16?> 17--EXPECT-- 18bool(false) 19bool(false) 20 21