php-src/ext/standard/tests/strings/moneyformat.phpt
Steph Fox 87fac43ac0 - killed off UEXPECT
- html_translation_table and setlocale tests are no longer relevant
- there are a number of ANSI-encoded files. Is this deliberate?
2008-05-27 10:50:48 +00:00

25 lines
635 B
PHP
Executable File

--TEST--
money_format test
--SKIPIF--
<?php
if (!function_exists('money_format') || !function_exists('setlocale')) {
die("SKIP money_format - not supported\n");
}
if (setlocale(LC_MONETARY, 'en_US') === false) {
die('skip en_US locale not available');
}
?>
--FILE--
<?php
setlocale(LC_MONETARY, 'en_US');
var_dump( money_format("X%nY", 3.1415));
var_dump(money_format("AAAAA%n%n%n%n", NULL));
?>
--EXPECTF--
Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
unicode(7) "X$3.14Y"
Warning: money_format(): Only a single %ci or %cn token can be used in %s on line %d
bool(false)