Annotation of embedaddon/php/ext/standard/tests/strings/moneyformat.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: money_format test
                      3: --SKIPIF--
                      4: <?php
                      5:        if (!function_exists('money_format') || !function_exists('setlocale')) {
                      6:                die("SKIP money_format - not supported\n");
                      7:        }
                      8: 
                      9: if (setlocale(LC_MONETARY, 'en_US') === false) {
                     10:        die('skip en_US locale not available');
                     11: }
                     12: ?>
                     13: --FILE--
                     14: <?php
                     15: setlocale(LC_MONETARY, 'en_US');
                     16: var_dump( money_format("X%nY", 3.1415));
                     17: var_dump(money_format("AAAAA%n%n%n%n", NULL));
                     18: ?>
                     19: --EXPECTF--
                     20: string(7) "X$3.14Y"
                     21: 
                     22: Warning: money_format(): Only a single %ci or %cn token can be used in %s on line %d
                     23: bool(false)

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