Annotation of embedaddon/php/ext/spl/tests/splpriorityqueue_extract.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: splpriorityqueue extract() Test arguments
3: --CREDITS--
4: Roshan Abraham (roshanabrahams@gmail.com)
5: TestFest London May 2009
6: --FILE--
7: <?php
8:
9: $sp = new SplPriorityQueue();
10:
11: $sp->insert("1",1);
12:
13: $sp->extract(1); // Should throw a warning as extract expects NO arguments
14:
15: ?>
16: --EXPECTF--
17:
18: Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
19:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>