1--TEST--
2SPL: SplMinHeap compare, illegal number of args
3--CREDITS--
4Mark Schaschke (mark@fractalturtle.com)
5TestFest London May 2009
6--FILE--
7<?php
8class SplMinHeap2 extends SplMinHeap {
9	public function testCompare1() {
10		return parent::compare();
11	}
12	public function testCompare2() {
13		return parent::compare(1);
14	}
15	public function testCompare3() {
16		return parent::compare(1, 2, 3);
17	}
18}
19
20$h = new SplMinHeap2();
21$h->testCompare1();
22$h->testCompare2();
23$h->testCompare3();
24?>
25--EXPECTF--
26Warning: SplMinHeap::compare() expects exactly 2 parameters, 0 given in %s
27
28Warning: SplMinHeap::compare() expects exactly 2 parameters, 1 given in %s
29
30Warning: SplMinHeap::compare() expects exactly 2 parameters, 3 given in %s
31