diff options
Diffstat (limited to 'ext/spl/tests/spl_pq_top_error_empty.phpt')
| -rw-r--r-- | ext/spl/tests/spl_pq_top_error_empty.phpt | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ext/spl/tests/spl_pq_top_error_empty.phpt b/ext/spl/tests/spl_pq_top_error_empty.phpt index 129a04891..9e2a31bbc 100644 --- a/ext/spl/tests/spl_pq_top_error_empty.phpt +++ b/ext/spl/tests/spl_pq_top_error_empty.phpt @@ -1,19 +1,19 @@ ---TEST--
-SPL: SplPriorityQueue: top exception on empty heap
---CREDITS--
-Nathaniel McHugh nat@fishtrap.co.uk
-#testfest 2009-05-09
---FILE--
+--TEST-- +SPL: SplPriorityQueue: top exception on empty heap +--CREDITS-- +Nathaniel McHugh nat@fishtrap.co.uk +#testfest 2009-05-09 +--FILE-- <?php -
-$priorityQueue = new SplPriorityQueue();
-
-try {
- $priorityQueue->top();
-} catch (RuntimeException $e) {
- echo "Exception: ".$e->getMessage().PHP_EOL;
-}
-
-?>
---EXPECT--
+ +$priorityQueue = new SplPriorityQueue(); + +try { + $priorityQueue->top(); +} catch (RuntimeException $e) { + echo "Exception: ".$e->getMessage().PHP_EOL; +} + +?> +--EXPECT-- Exception: Can't peek at an empty heap |
