mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
20 lines
496 B
Plaintext
20 lines
496 B
Plaintext
|
--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
|
||
|
|