Annotation of embedaddon/php/ext/standard/tests/strings/number_format_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test 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:  
        !            11: echo "*** Testing number_format() : error conditions ***\n";
        !            12: 
        !            13: echo "\n-- Testing number_format() function with less than expected no. of arguments --\n";
        !            14: number_format();
        !            15: 
        !            16: echo "\n-- Testing number_format() function with 3 arguments --\n";
        !            17: number_format(23,2,true);
        !            18: 
        !            19: echo "\n-- Testing number_format() function with more than 4 arguments --\n";
        !            20: number_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: 
        !            29: Warning: number_format() expects at least 1 parameter, 0 given in %s on line %d
        !            30: 
        !            31: -- Testing number_format() function with 3 arguments --
        !            32: 
        !            33: Warning: Wrong parameter count for number_format() in %s on line %d
        !            34: 
        !            35: -- Testing number_format() function with more than 4 arguments --
        !            36: 
        !            37: Warning: number_format() expects at most 4 parameters, 5 given in %s on line %d
        !            38: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>