Annotation of embedaddon/php/ext/spl/tests/heap_top_variation_001.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: SPL: SplHeap top, illegal number of args
        !             3: --CREDITS--
        !             4: Mark Schaschke (mark@fractalturtle.com)
        !             5: TestFest London May 2009
        !             6: --FILE--
        !             7: <?php
        !             8: $h = new SplMinHeap();
        !             9: $h->insert(5);
        !            10: // top doesn't take any args, lets see what happens if we give it one
        !            11: $h->top('bogus');
        !            12: ?>
        !            13: --EXPECTF--
        !            14: Warning: SplHeap::top() expects exactly 0 parameters, 1 given in %s

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