1--TEST--
2Check that SplPriorityQueue::extract generate a warning and returns NULL when param passed
3--CREDITS--
4PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
5--FILE--
6<?php
7
8$data_provider = array(
9    new stdClass,
10	array(),
11	true,
12	"string",
13	12345,
14	1.2345,
15	NULL
16);
17
18foreach($data_provider as $input) {
19
20	$h = new SplPriorityQueue();
21
22	var_dump($h->extract($input));
23}
24
25?>
26--EXPECTF--
27Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
28NULL
29
30Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
31NULL
32
33Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
34NULL
35
36Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
37NULL
38
39Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
40NULL
41
42Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
43NULL
44
45Warning: SplPriorityQueue::extract() expects exactly 0 parameters, 1 given in %s on line %d
46NULL
47