mirror of
https://github.com/php/php-src.git
synced 2024-10-04 08:16:11 +00:00
22 lines
322 B
Plaintext
22 lines
322 B
Plaintext
|
--TEST--
|
||
|
SPL: SplHeap::current - get current value from empty heap
|
||
|
--CREDITS--
|
||
|
Mike Sullivan <mikesul@php.net>
|
||
|
#TestFest 2009 (London)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class myHeap extends SplHeap
|
||
|
{
|
||
|
public function compare($v1, $v2)
|
||
|
{
|
||
|
throw new Exception('');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$heap = new myHeap();
|
||
|
var_dump($heap->current());
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
NULL
|