mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
28 lines
436 B
PHP
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===
|