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