--TEST-- SPL: SplHeap, Test spl_heap_object_count_elements (spl_heap.c:490) for returning count() failure for Heaps --CREDITS-- Chris Scott chris.scott@nstein.com #testfest London 2009-05-09 --FILE-- insert(1); try { count($heap);// refers to MyHeap->count() method } catch (Exception $e) { echo "Exception: " . $e->getMessage() . "\n"; } ?> --EXPECT-- Exception: Cause count to fail