Lines Matching refs:money_format

2 Test money_format() function : error conditions
5 if (!function_exists('money_format')) {
6 die("SKIP money_format - not supported\n");
11 /* Prototype : string money_format ( string $format , float $number )
24 echo "*** Testing money_format() : error conditions ***\n";
26 echo "\n-- Testing money_format() function with no arguments --\n";
27 var_dump( money_format() );
29 echo "\n-- Testing money_format() function with insufficient arguments --\n";
30 var_dump( money_format($string) );
32 echo "\n-- Testing money_format() function with more than expected no. of arguments --\n";
33 var_dump( money_format($string, $value, $extra_arg) );
35 echo "\n-- Testing money_format() function with more than one token --\n";
36 var_dump( money_format($string . $string, $value) );
40 *** Testing money_format() : error conditions ***
42 -- Testing money_format() function with no arguments --
44 Deprecated: Function money_format() is deprecated in %s on line %d
46 Warning: money_format() expects exactly 2 parameters, 0 given in %s on line %d
49 -- Testing money_format() function with insufficient arguments --
51 Deprecated: Function money_format() is deprecated in %s on line %d
53 Warning: money_format() expects exactly 2 parameters, 1 given in %s on line %d
56 -- Testing money_format() function with more than expected no. of arguments --
58 Deprecated: Function money_format() is deprecated in %s on line %d
60 Warning: money_format() expects exactly 2 parameters, 3 given in %s on line %d
63 -- Testing money_format() function with more than one token --
65 Deprecated: Function money_format() is deprecated in %s on line %d
67 Warning: money_format(): Only a single %ci or %cn token can be used in %s on line %d