1--TEST--
2SPL: SplPriorityQueue: top exception on empty heap
3--CREDITS--
4Nathaniel McHugh nat@fishtrap.co.uk
5#testfest 2009-05-09
6--FILE--
7<?php
8
9$priorityQueue = new SplPriorityQueue();
10
11try {
12    $priorityQueue->top();
13} catch (RuntimeException $e) {
14    echo "Exception: ".$e->getMessage().PHP_EOL;
15}
16
17?>
18--EXPECT--
19Exception: Can't peek at an empty heap
20