summaryrefslogtreecommitdiff
path: root/ext/spl/tests/pqueue_compare_error.phpt
blob: 610be2a5696a66a6a68cd92915d68de45676118a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
SPL: Priority queue compare, illegal number of args
--CREDITS--
Mark Schaschke (mark@fractalturtle.com)
TestFest London May 2009
--FILE--
<?php
$h = new SplPriorityQueue();
$h->compare();
$h->compare(1);
$h->compare(1, 2, 3);
?>
--EXPECTF--
Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 0 given in %s

Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 1 given in %s

Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 3 given in %s