Annotation of embedaddon/php/ext/standard/tests/array/key_exists_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function key_exists() by calling it more than or less than its expected arguments
3: --CREDITS--
4: Francesco Fullone ff@ideato.it
5: #PHPTestFest Cesena Italia on 2009-06-20
6: --FILE--
7: <?php
8:
9: echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
10:
11: $a = array('bar' => 1);
12: var_dump(key_exists());
13: var_dump(key_exists('foo', $a, 'baz'));
14:
15: ?>
16: --EXPECTF--
17: *** Test by calling method or function with incorrect numbers of arguments ***
18:
19: Warning: key_exists() expects exactly 2 parameters, 0 given in %s on line %d
20: NULL
21:
22: Warning: key_exists() expects exactly 2 parameters, 3 given in %s on line %d
23: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>