diff options
Diffstat (limited to 'ext/spl/tests/spl_pq_top_error_args.phpt')
| -rw-r--r-- | ext/spl/tests/spl_pq_top_error_args.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/spl_pq_top_error_args.phpt b/ext/spl/tests/spl_pq_top_error_args.phpt new file mode 100644 index 0000000..a0e5969 --- /dev/null +++ b/ext/spl/tests/spl_pq_top_error_args.phpt @@ -0,0 +1,12 @@ +--TEST-- +SPL: SplPriorityQueue: top too many arguments exception +--CREDITS-- +Nathaniel McHugh nat@fishtrap.co.uk +#testfest London 2009-05-09 +--FILE-- +<?php +$priorityQueue = new SplPriorityQueue(); +$priorityQueue->top('var'); +?> +--EXPECTF-- +Warning: SplPriorityQueue::top() expects exactly 0 parameters, 1 given in %s
\ No newline at end of file |
