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

22 lines
322 B
Plaintext
Raw Normal View History

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