1--TEST--
2SPL: priorityQueue parameter test on insert method
3--CREDITS--
4Sean Burlington www.practicalweb.co.uk
5TestFest London May 2009
6--FILE--
7<?php
8
9
10$testHeap = new SplPriorityQueue();
11
12
13var_dump($testHeap->insert());
14var_dump($testHeap->insert('test'));
15var_dump($testHeap->insert('test', 'test'));
16var_dump($testHeap->insert('test', 'test', 'test'));
17
18
19?>
20===DONE===
21--EXPECTF--
22Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 0 given in %s on line 7
23NULL
24
25Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 1 given in %s on line 8
26NULL
27bool(true)
28
29Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 3 given in %s on line 10
30NULL
31===DONE===
32