pqueue_compare_error.phpt 496 B

12345678910111213141516171819
  1. --TEST--
  2. SPL: Priority queue compare, illegal number of args
  3. --CREDITS--
  4. Mark Schaschke (mark@fractalturtle.com)
  5. TestFest London May 2009
  6. --FILE--
  7. <?php
  8. $h = new SplPriorityQueue();
  9. $h->compare();
  10. $h->compare(1);
  11. $h->compare(1, 2, 3);
  12. ?>
  13. --EXPECTF--
  14. Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 0 given in %s
  15. Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 1 given in %s
  16. Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 3 given in %s