Annotation of embedaddon/php/ext/spl/tests/spl_pq_top_error_empty.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>