Annotation of embedaddon/php/ext/spl/tests/pqueue_compare_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: SplPriorityQueue: test compare
3: --CREDITS--
4: Mark Schaschke (mark@fractalturtle.com)
5: TestFest London May 2009
6: --FILE--
7: <?php
8: $h = new SplPriorityQueue();
9: var_dump($h->compare(4, 5) < 0);
10: var_dump($h->compare(5, 5) == 0);
11: var_dump($h->compare(5, 4) > 0);
12: ?>
13: ===DONE===
14: <?php exit(0); ?>
15: --EXPECTF--
16: bool(true)
17: bool(true)
18: bool(true)
19: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>