Annotation of embedaddon/php/ext/spl/tests/pqueue_compare_error.phpt, revision 1.1.1.1

1.1       misho       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: 
                     16: Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 1 given in %s
                     17: 
                     18: Warning: SplPriorityQueue::compare() expects exactly 2 parameters, 3 given in %s
                     19: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>