summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplPriorityQueue_insert_invalid_parameter.phpt
blob: 7d7b5893567b072e8fe2d2433d7bf5caa83833fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Check that SplPriorityQueue::insert generate a warning and returns NULL when rubbish params are passed
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
--FILE--
<?php

$h = new SplPriorityQueue();

var_dump($h->insert(NULL));

?>
--EXPECTF--
Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 1 given in %s on line %d
NULL