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

1.1       misho       1: --TEST--
                      2: SPL: SplMaxHeap, Test method to comare elements
                      3: --CREDITS--
                      4: Chris Scott chris.scott@nstein.com
                      5: #testfest London 2009-05-09
                      6: --FILE--
                      7: <?php
                      8: 
                      9: class MyHeap extends SplMaxHeap
                     10: {
                     11:     public function testCompare()
                     12:     {
                     13:         return parent::compare(1);
                     14:     }
                     15: }
                     16: 
                     17: $heap = new MyHeap();
                     18: $heap->testCompare();
                     19: 
                     20: ?>
                     21: --EXPECTF--
                     22: Warning: SplMaxHeap::compare() expects exactly 2 parameters, %s

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