summaryrefslogtreecommitdiff
path: root/ext/spl/tests/spl_heap_insert_basic.phpt
blob: 76a34b292b9f3530b4c2db34ba5504d76ccf67c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
SPL: SplHeap, Test method to insert into heap
--CREDITS--
Chris Scott chris.scott@nstein.com
#testfest London 2009-05-09
--FILE--
<?php
class MyHeap extends SplHeap
{
    public function compare($a, $b)
    {
        return $a < $b;
    }
}

$heap = new MyHeap();
$heap->insert(1,2);
?>
--EXPECTF--
Warning: SplHeap::insert() expects exactly 1 parameter, %s