1--TEST--
2SPL: SplHeap, Test method to insert into heap
3--CREDITS--
4Chris Scott chris.scott@nstein.com
5#testfest London 2009-05-09
6--FILE--
7<?php
8class MyHeap extends SplHeap
9{
10    public function compare($a, $b)
11    {
12        return $a < $b;
13    }
14}
15
16$heap = new MyHeap();
17$heap->insert(1,2);
18?>
19--EXPECTF--
20Warning: SplHeap::insert() expects exactly 1 parameter, %s
21