1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
Files
archived-php-src/ext/intl/tests/bug78912.phpt
T
2019-12-09 16:34:56 +01:00

15 lines
412 B
PHP

--TEST--
Request #78912 (INTL Support for accounting format)
--SKIPIF--
<?php
if (!extension_loaded('intl')) die('skip intl extension not available');
if (version_compare(INTL_ICU_VERSION, '53.0') < 0) die('skip for ICU >= 53.0');
?>
--FILE--
<?php
$nf = new NumberFormatter('en_US', NumberFormatter::CURRENCY_ACCOUNTING);
var_dump($nf->formatCurrency(-12345.67, 'USD'));
?>
--EXPECT--
string(12) "($12,345.67)"