php-src/ext/spl/tests/SplPriorityQueue_insert_invalid_parameter.phpt

17 lines
370 B
Plaintext
Raw Normal View History

2009-05-23 23:37:36 +08:00
--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