mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
17 lines
301 B
Plaintext
17 lines
301 B
Plaintext
|
--TEST--
|
||
|
SPL: SplHeap: isEmpty argument variation.
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class SplHeap2 extends SplHeap{
|
||
|
|
||
|
public function compare() {
|
||
|
return -parent::compare();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$h = new SplHeap2;
|
||
|
$h->isEmpty(1);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: SplHeap::isEmpty() expects exactly 0 parameters, 1 given in %s
|