diff options
Diffstat (limited to 'ext/spl/tests/heap_it_current_empty.phpt')
-rw-r--r-- | ext/spl/tests/heap_it_current_empty.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/heap_it_current_empty.phpt b/ext/spl/tests/heap_it_current_empty.phpt new file mode 100644 index 0000000..24230db --- /dev/null +++ b/ext/spl/tests/heap_it_current_empty.phpt @@ -0,0 +1,12 @@ +--TEST-- +SPL: SplHeap current, check looping through an empty heap gives you no values +--CREDITS-- +Mark Schaschke (mark@fractalturtle.com) +TestFest London May 2009 +--FILE-- +<?php +$h = new SplMinHeap(); + +foreach ($h as $val) { echo 'FAIL'; } +?> +--EXPECT-- |