xref: /PHP-7.4/ext/intl/tests/bug78912.phpt (revision 505cc77c)
1--TEST--
2Request #78912 (INTL Support for accounting format)
3--SKIPIF--
4<?php
5if (!extension_loaded('intl')) die('skip intl extension not available');
6if (version_compare(INTL_ICU_VERSION, '53.0') < 0) die('skip for ICU >= 53.0');
7?>
8--FILE--
9<?php
10$nf = new NumberFormatter('en_US', NumberFormatter::CURRENCY_ACCOUNTING);
11var_dump($nf->formatCurrency(-12345.67, 'USD'));
12?>
13--EXPECT--
14string(12) "($12,345.67)"
15