1--TEST--
2Check that SplHeap::count 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 SplMaxHeap();
21
22	var_dump($h->count($input));
23}
24
25?>
26--EXPECTF--
27Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
28NULL
29
30Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
31NULL
32
33Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
34NULL
35
36Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
37NULL
38
39Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
40NULL
41
42Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
43NULL
44
45Warning: SplHeap::count() expects exactly 0 parameters, 1 given in %s on line %d
46NULL
47
48