diff options
Diffstat (limited to 'ext/spl/tests/pqueue_current_error.phpt')
-rw-r--r-- | ext/spl/tests/pqueue_current_error.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/pqueue_current_error.phpt b/ext/spl/tests/pqueue_current_error.phpt new file mode 100644 index 0000000..7fdf0af --- /dev/null +++ b/ext/spl/tests/pqueue_current_error.phpt @@ -0,0 +1,12 @@ +--TEST-- +SPL: SplPriorityQueue current on empty queue should give null +--CREDITS-- +Mark Schaschke (mark@fractalturtle.com) +TestFest London May 2009 +--FILE-- +<?php +$h = new SplPriorityQueue(); +var_dump($h->current()); +?> +--EXPECT-- +NULL |