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

1.1       misho       1: --TEST--
                      2: SPL: SplHeap::current - get current value from empty heap
                      3: --CREDITS--
                      4: Mike Sullivan <mikesul@php.net>
                      5: #TestFest 2009 (London)
                      6: --FILE--
                      7: <?php
                      8: 
                      9: class myHeap extends SplHeap
                     10: {
                     11:        public function compare($v1, $v2)
                     12:        {
                     13:                throw new Exception('');
                     14:        }
                     15: }
                     16: 
                     17: $heap = new myHeap();
                     18: var_dump($heap->current());
                     19: 
                     20: ?>
                     21: --EXPECT--
                     22: NULL

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