--TEST-- Test OddFilterIterator - float (whole #) --SKIPIF-- <?php if (!extension_loaded("xrange")) print "skip"; ?> --FILE-- <?php $fullRange = range(1, 10, 0.5); $oddList = array(1, 1.5, 3, 3.5, 5, 5.5, 7, 7.5, 9, 9.5); echo array_values( iterator_to_array( new OddFilterIterator( new ArrayIterator($fullRange) ) ) ) == array_values($oddList) ? 'Success' : 'Failure'; ?> --EXPECT-- Success