diff options
Diffstat (limited to 'ext/spl/tests/spl_heap_count_error.phpt')
-rw-r--r-- | ext/spl/tests/spl_heap_count_error.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/spl_heap_count_error.phpt b/ext/spl/tests/spl_heap_count_error.phpt new file mode 100644 index 0000000000..6bed4cfa60 --- /dev/null +++ b/ext/spl/tests/spl_heap_count_error.phpt @@ -0,0 +1,12 @@ +--TEST-- +SPL: Priority queue count, illegal number of args +--CREDITS-- +Mark Schaschke (mark@fractalturtle.com) +TestFest London May 2009 +--FILE-- +<?php +$h = new SplPriorityQueue(); +$h->count(1); +?> +--EXPECTF-- +Warning: SplPriorityQueue::count() expects exactly 0 parameters, 1 given in %s |