xref: /PHP-8.1/ext/spl/tests/heap_008.phpt (revision a555cc0b)
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--EXPECT--
15object(SplMaxHeap)#1 (3) {
16  ["flags":"SplHeap":private]=>
17  int(0)
18  ["isCorrupted":"SplHeap":private]=>
19  bool(false)
20  ["heap":"SplHeap":private]=>
21  array(4) {
22    [0]=>
23    int(5)
24    [1]=>
25    int(4)
26    [2]=>
27    int(0)
28    [3]=>
29    int(1)
30  }
31}
32