--TEST-- SPL: SplPriorityQueue: top and extract flags --CREDITS-- Nathaniel McHugh nat@fishtrap.co.uk #testfest 2009-05-09 --FILE-- insert("a", 1); try { //corrupt heap $priorityQueue->insert("b", 2); // ignore exception tested elsewhere } catch (Exception $e) { } try { $priorityQueue->top(); } catch (RuntimeException $e) { echo "Exception: ".$e->getMessage().PHP_EOL; } ?> --EXPECT-- Exception: Heap is corrupted, heap properties are no longer ensured.