summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplHeap_insert_invalid_parameter.phpt
blob: f2bec5a66f7f9518cde678228792e64d6d9c7c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Check that SplHeap::insert generate a warning and returns NULL when $value is missing
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
--FILE--
<?php

$h = new SplMaxHeap();

var_dump($h->insert());

?>
--EXPECTF--
Warning: SplHeap::insert() expects exactly 1 parameter, 0 given in %s on line %d
NULL