Annotation of embedaddon/php/ext/spl/tests/pqueue_004.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: SplPriorityQueue: var_dump
! 3: --FILE--
! 4: <?php
! 5: $pq = new SplPriorityQueue();
! 6:
! 7: $pq->insert("a", 0);
! 8: $pq->insert("b", 1);
! 9: $pq->insert("c", 5);
! 10: $pq->insert("d", -2);
! 11:
! 12: var_dump($pq);
! 13: ?>
! 14: ===DONE===
! 15: <?php exit(0); ?>
! 16: --EXPECTF--
! 17: object(SplPriorityQueue)#1 (3) {
! 18: ["flags":"SplPriorityQueue":private]=>
! 19: int(1)
! 20: ["isCorrupted":"SplPriorityQueue":private]=>
! 21: bool(false)
! 22: ["heap":"SplPriorityQueue":private]=>
! 23: array(4) {
! 24: [0]=>
! 25: array(2) {
! 26: ["data"]=>
! 27: string(1) "c"
! 28: ["priority"]=>
! 29: int(5)
! 30: }
! 31: [1]=>
! 32: array(2) {
! 33: ["data"]=>
! 34: string(1) "a"
! 35: ["priority"]=>
! 36: int(0)
! 37: }
! 38: [2]=>
! 39: array(2) {
! 40: ["data"]=>
! 41: string(1) "b"
! 42: ["priority"]=>
! 43: int(1)
! 44: }
! 45: [3]=>
! 46: array(2) {
! 47: ["data"]=>
! 48: string(1) "d"
! 49: ["priority"]=>
! 50: int(-2)
! 51: }
! 52: }
! 53: }
! 54: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>