php-src/ext/spl/tests/heap_top_variation_003.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

17 lines
266 B
PHP

--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();
}
?>
--EXPECT--
Can't peek at an empty heap