Annotation of embedaddon/php/ext/spl/tests/spl_heap_extract_parameter_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: Heap and extract with parameter
3: --CREDITS--
4: Sean Burlington www.practicalweb.co.uk
5: TestFest London May 2009
6: --FILE--
7: <?php
8:
9: class TestHeap extends SplHeap {
10:
11: function compare() {
12: print "This shouldn't be printed";
13: }
14: }
15:
16: $testHeap = new TestHeap();
17:
18:
19:
20: var_dump($testHeap->extract('test'));
21:
22: ?>
23: ===DONE===
24: --EXPECTF--
25: Warning: SplHeap::extract() expects exactly 0 parameters, 1 given in %s on line 14
26: NULL
27: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>