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