1--TEST--
2Test array_change_key_case() function - 3
3--FILE--
4<?php
5/* generate different failure conditions */
6$int_var  = -19;
7$item = array ("one" => 1, "two" => 2, "THREE" => 3, "FOUR" => "four");
8
9var_dump( array_change_key_case($int_var) ); // args less than expected
10var_dump( array_change_key_case($int_var, CASE_UPPER) ); // invalid first argument
11var_dump( array_change_key_case() ); // Zero argument
12var_dump( array_change_key_case($item, $item["one"], "CASE_UPPER") ); // more than expected numbers
13
14echo "end\n";
15?>
16--EXPECTF--
17Warning: array_change_key_case() expects parameter 1 to be array, integer given in %s on line %d
18NULL
19
20Warning: array_change_key_case() expects parameter 1 to be array, integer given in %s on line %d
21NULL
22
23Warning: array_change_key_case() expects at least 1 parameter, 0 given in %s on line %d
24NULL
25
26Warning: array_change_key_case() expects at most 2 parameters, 3 given in %s on line %d
27NULL
28end
29