1--TEST-- 2SPL: Heap and extract with parameter 3--CREDITS-- 4Sean Burlington www.practicalweb.co.uk 5TestFest London May 2009 6--FILE-- 7<?php 8 9class TestHeap extends SplHeap { 10 11 function compare() { 12 print "This shouldn't be printed"; 13 } 14} 15 16$testHeap = new TestHeap(); 17 18 19 20var_dump($testHeap->extract('test')); 21 22?> 23===DONE=== 24--EXPECTF-- 25Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line 14 26NULL 27===DONE=== 28