![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: SPL: SplHeap current, check looping through an empty heap gives you no values 3: --CREDITS-- 4: Mark Schaschke (mark@fractalturtle.com) 5: TestFest London May 2009 6: --FILE-- 7: <?php 8: $h = new SplMinHeap(); 9: 10: foreach ($h as $val) { echo 'FAIL'; } 11: ?> 12: --EXPECT--