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