mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
17 lines
267 B
Plaintext
17 lines
267 B
Plaintext
|
--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
|