summaryrefslogtreecommitdiff
path: root/ext/spl/tests/heap_008.phpt
blob: 3a746b2e6f523db737139f6e0e532b33b8f58ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--TEST--
SPL: SplHeap: var_dump
--FILE--
<?php
$h = new SplMaxHeap();

$h->insert(1);
$h->insert(5);
$h->insert(0);
$h->insert(4);

var_dump($h);
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
object(SplMaxHeap)#1 (3) {
  ["flags":"SplHeap":private]=>
  int(0)
  ["isCorrupted":"SplHeap":private]=>
  bool(false)
  ["heap":"SplHeap":private]=>
  array(4) {
    [0]=>
    int(5)
    [1]=>
    int(4)
    [2]=>
    int(0)
    [3]=>
    int(1)
  }
}
===DONE===