Annotation of embedaddon/php/ext/spl/tests/SplPriorityQueue_insert_invalid_parameter.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Check that SplPriorityQueue::insert generate a warning and returns NULL when rubbish params are passed
3: --CREDITS--
4: PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
5: --FILE--
6: <?php
7:
8: $h = new SplPriorityQueue();
9:
10: var_dump($h->insert(NULL));
11:
12: ?>
13: --EXPECTF--
14: Warning: SplPriorityQueue::insert() expects exactly 2 parameters, 1 given in %s on line %d
15: NULL
16:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>