blob: 7a91a9c0006713353ce0f10c9706bef0d16b106f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--TEST--
SPL: SplHeap top of empty heap
--CREDITS--
Mark Schaschke (mark@fractalturtle.com)
TestFest London May 2009
--FILE--
<?php
$h = new SplMinHeap();
try {
$h->top();
} catch (Exception $e) {
echo $e->getMessage();
}
?>
--EXPECTF--
Can't peek at an empty heap
|