1--TEST-- 2Test number_format() - wrong params test number_format() 3--FILE-- 4<?php 5/* Prototype : string number_format ( float $number [, int $decimals ] ) 6 * string number_format ( float $number , int $decimals , string $dec_point , string $thousands_sep ) 7 * Description: Format a number with grouped thousands 8 * Source code: ext/standard/string.c 9 */ 10 11echo "*** Testing number_format() : error conditions ***\n"; 12 13echo "\n-- Testing number_format() function with less than expected no. of arguments --\n"; 14number_format(); 15 16echo "\n-- Testing number_format() function with 3 arguments --\n"; 17number_format(23,2,true); 18 19echo "\n-- Testing number_format() function with more than 4 arguments --\n"; 20number_format(23,2,true,false,36); 21 22?> 23===DONE=== 24--EXPECTF-- 25*** Testing number_format() : error conditions *** 26 27-- Testing number_format() function with less than expected no. of arguments -- 28 29Warning: number_format() expects at least 1 parameter, 0 given in %s on line %d 30 31-- Testing number_format() function with 3 arguments -- 32 33Warning: Wrong parameter count for number_format() in %s on line %d 34 35-- Testing number_format() function with more than 4 arguments -- 36 37Warning: number_format() expects at most 4 parameters, 5 given in %s on line %d 38===DONE=== 39