1--TEST-- 2Test wrong number of arguments for deg2rad() 3--INI-- 4precision = 14 5--FILE-- 6<?php 7/* 8 * proto float deg2rad(float number) 9 * Function is implemented in ext/standard/math.c 10*/ 11 12$arg_0 = 1.0; 13$extra_arg = 1; 14 15echo "\nToo many arguments\n"; 16var_dump(deg2rad($arg_0, $extra_arg)); 17 18echo "\nToo few arguments\n"; 19var_dump(deg2rad()); 20 21?> 22--EXPECTF-- 23Too many arguments 24 25Warning: deg2rad() expects exactly 1 parameter, 2 given in %s on line %d 26NULL 27 28Too few arguments 29 30Warning: deg2rad() expects exactly 1 parameter, 0 given in %s on line %d 31NULL 32