summaryrefslogtreecommitdiff
path: root/ext/spl/tests/heap_current_variation_001.phpt
blob: f67eb428c3a78e1be4eafcd35e16802e8b960bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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