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