1--TEST--
2SPL: splpriorityqueue extract() Test arguments
3--CREDITS--
4Roshan Abraham (roshanabrahams@gmail.com)
5TestFest 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--
17Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
18