firefly-iii/tests
Hosh Sadiq 14dd185717
Use php-intl to format currencies
Currently the php function `number_format` is used to format currencies.
This is problematic as we have to figure out different things for
different currencies ourselves. These formats are determined based on
the libc's locale functions.

The issue arises where an OS doesn't have the proper locales installed,
or, in some cases, it's not supported (see below on multiple issues).

This addresses this issue by using the php-intl extensions to format the
numbers based on the locale. The extension is already a requirement in
`composer.json`. The solution does not rely on `LC_MONETARY` from the
underlying libc (which in Alpine Linux's case, which uses musl, is not
supported as of yet).

List of issues that are related and would potentially be fixed using
this PR:

- #2298
- #2946
- #3070
- #3306
- #3519
2020-07-19 18:34:39 +01:00
..
Api/V1/Controllers Fix tests 2020-07-12 17:28:43 +02:00
Feature Use php-intl to format currencies 2020-07-19 18:34:39 +01:00
Object Update email address. 2020-02-16 13:59:55 +01:00
Support Use php-intl to format currencies 2020-07-19 18:34:39 +01:00
Unit Fix some tests. 2020-07-17 18:51:54 +02:00
CreatesApplication.php Update email address. 2020-02-16 13:59:41 +01:00
TestCase.php Remove import code. 2020-06-06 21:23:26 +02:00