php-src/ext/spl/tests/spl_heap_extract_parameter_error.phpt

28 lines
436 B
Plaintext
Raw Normal View History

2009-05-17 15:21:45 +00:00
--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===