xref: /PHP-7.3/ext/spl/tests/heap_008.phpt (revision ded3d984)
1--TEST--
2SPL: SplHeap: var_dump
3--FILE--
4<?php
5$h = new SplMaxHeap();
6
7$h->insert(1);
8$h->insert(5);
9$h->insert(0);
10$h->insert(4);
11
12var_dump($h);
13?>
14===DONE===
15<?php exit(0); ?>
16--EXPECT--
17object(SplMaxHeap)#1 (3) {
18  ["flags":"SplHeap":private]=>
19  int(0)
20  ["isCorrupted":"SplHeap":private]=>
21  bool(false)
22  ["heap":"SplHeap":private]=>
23  array(4) {
24    [0]=>
25    int(5)
26    [1]=>
27    int(4)
28    [2]=>
29    int(0)
30    [3]=>
31    int(1)
32  }
33}
34===DONE===
35