--TEST-- Test array_change_key_case() function - 3 --FILE-- 1, "two" => 2, "THREE" => 3, "FOUR" => "four"); var_dump( array_change_key_case($int_var) ); // args less than expected var_dump( array_change_key_case($int_var, CASE_UPPER) ); // invalid first argument var_dump( array_change_key_case() ); // Zero argument var_dump( array_change_key_case($item, $item["one"], "CASE_UPPER") ); // more than expected numbers echo "end\n"; ?> --EXPECTF-- Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d NULL Warning: array_change_key_case() expects parameter 1 to be array, int given in %s on line %d NULL Warning: array_change_key_case() expects at least 1 parameter, 0 given in %s on line %d NULL Warning: array_change_key_case() expects at most 2 parameters, 3 given in %s on line %d NULL end