1--TEST-- 2Testing floatval() and its alias doubleval() : error conditions - wrong numbers of parametersns 3--FILE-- 4<?php 5/* Prototype: float floatval( mixed $var ); 6 * Description: Returns the float value of var. 7 */ 8 9echo "*** Testing floatval() and doubleval() : error conditions ***\n"; 10 11 12echo "\n-- Testing floatval() and doubleval() function with no arguments --\n"; 13var_dump( floatval() ); 14var_dump( doubleval() ); 15 16echo "\n-- Testing floatval() and doubleval() function with more than expected no. of arguments --\n"; 17var_dump( floatval(10.5, FALSE) ); 18var_dump( doubleval(10.5, FALSE) ); 19 20?> 21===DONE=== 22--EXPECTF-- 23*** Testing floatval() and doubleval() : error conditions *** 24 25-- Testing floatval() and doubleval() function with no arguments -- 26 27Warning: floatval() expects exactly 1 parameter, 0 given in %s on line %d 28NULL 29 30Warning: doubleval() expects exactly 1 parameter, 0 given in %s on line %d 31NULL 32 33-- Testing floatval() and doubleval() function with more than expected no. of arguments -- 34 35Warning: floatval() expects exactly 1 parameter, 2 given in %s on line %d 36NULL 37 38Warning: doubleval() expects exactly 1 parameter, 2 given in %s on line %d 39NULL 40===DONE===