php-src/ext/spl/tests/spl_heap_extract_parameter_error.phpt
2009-05-17 15:24:08 +00:00

28 lines
436 B
PHP

--TEST--
SPL: Heap and extract with parameter
--CREDITS--
Sean Burlington www.practicalweb.co.uk
TestFest London May 2009
--FILE--
<?php
class TestHeap extends SplHeap {
function compare() {
print "This shouldn't be printed";
}
}
$testHeap = new TestHeap();
var_dump($testHeap->extract('test'));
?>
===DONE===
--EXPECTF--
Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line 14
NULL
===DONE===