['$1,234,567.89', '.', ',', 'USD', TRUE],
['-$1,234,567.89', '.', ',', 'USD', TRUE],
['$-1,234,567.89', '.', ',', 'USD', TRUE],
- ['1234567.89', '.', ',', 'USD', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, '.', ',', 'USD', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', '.', ',', 'USD', TRUE],
+ // This is the float format.
+ [1234567.89, '.', ',', 'USD', TRUE],
// Test EURO currency
['€1,234,567.89', '.', ',', 'EUR', TRUE],
['-€1,234,567.89', '.', ',', 'EUR', TRUE],
['€-1,234,567.89', '.', ',', 'EUR', TRUE],
- ['1234567.89', '.', ',', 'EUR', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, '.', ',', 'EUR', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', '.', ',', 'EUR', TRUE],
+ // This is the float format.
+ [1234567.89, '.', ',', 'EUR', TRUE],
// Test Norwegian KR currency
['kr1,234,567.89', '.', ',', 'NOK', TRUE],
['kr 1,234,567.89', '.', ',', 'NOK', TRUE],
['-kr 1,234,567.89', '.', ',', 'NOK', TRUE],
['kr-1,234,567.89', '.', ',', 'NOK', TRUE],
['kr -1,234,567.89', '.', ',', 'NOK', TRUE],
- ['1234567.89', '.', ',', 'NOK', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, '.', ',', 'NOK', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', '.', ',', 'NOK', TRUE],
+ // This is the float format.
+ [1234567.89, '.', ',', 'NOK', TRUE],
// Test different localization options: , as decimal separator and dot as thousand separator
['$1.234.567,89', ',', '.', 'USD', TRUE],
['-$1.234.567,89', ',', '.', 'USD', TRUE],
['$-1.234.567,89', ',', '.', 'USD', TRUE],
['1.234.567,89', ',', '.', 'USD', TRUE],
- ['1234567.89', ',', '.', 'USD', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, ',', '.', 'USD', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', ',', '.', 'USD', TRUE],
+ // This is the float format.
+ [1234567.89, ',', '.', 'USD', TRUE],
['$1,234,567.89', ',', '.', 'USD', FALSE],
['-$1,234,567.89', ',', '.', 'USD', FALSE],
['$-1,234,567.89', ',', '.', 'USD', FALSE],
['-$1 234 567,89', ',', ' ', 'USD', TRUE],
['$-1 234 567,89', ',', ' ', 'USD', TRUE],
['1 234 567,89', ',', ' ', 'USD', TRUE],
- ['1234567.89', ',', ' ', 'USD', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, ',', ' ', 'USD', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', ',', ' ', 'USD', TRUE],
+ // This is the float format.
+ [1234567.89, ',', ' ', 'USD', TRUE],
];
}
/**
* @dataProvider createLocalizedContributionDataProvider
- * @param $inputData
+ * @param $totalAmount
* @param $decimalPoint
* @param $thousandSeparator
* @param $currency
if ($expectedResult) {
$this->callAPISuccess('Contribution', 'create', $_params);
- } else {
+ }
+ else {
$this->callAPIFailure('Contribution', 'create', $_params);
}
}
['$1,234,567.89', '.', ',', 'USD', TRUE],
['-$1,234,567.89', '.', ',', 'USD', TRUE],
['$-1,234,567.89', '.', ',', 'USD', TRUE],
- ['1234567.89', '.', ',', 'USD', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, '.', ',', 'USD', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', '.', ',', 'USD', TRUE],
+ // This is the float format.
+ [1234567.89, '.', ',', 'USD', TRUE],
// Test EURO currency
['€1,234,567.89', '.', ',', 'EUR', TRUE],
['-€1,234,567.89', '.', ',', 'EUR', TRUE],
['€-1,234,567.89', '.', ',', 'EUR', TRUE],
- ['1234567.89', '.', ',', 'EUR', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, '.', ',', 'EUR', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', '.', ',', 'EUR', TRUE],
+ // This is the float format.
+ [1234567.89, '.', ',', 'EUR', TRUE],
// Test Norwegian KR currency
['kr1,234,567.89', '.', ',', 'NOK', TRUE],
['kr 1,234,567.89', '.', ',', 'NOK', TRUE],
['-kr 1,234,567.89', '.', ',', 'NOK', TRUE],
['kr-1,234,567.89', '.', ',', 'NOK', TRUE],
['kr -1,234,567.89', '.', ',', 'NOK', TRUE],
- ['1234567.89', '.', ',', 'NOK', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, '.', ',', 'NOK', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', '.', ',', 'NOK', TRUE],
+ // This is the float format.
+ [1234567.89, '.', ',', 'NOK', TRUE],
// Test different localization options: , as decimal separator and dot as thousand separator
['$1.234.567,89', ',', '.', 'USD', TRUE],
['-$1.234.567,89', ',', '.', 'USD', TRUE],
['$-1.234.567,89', ',', '.', 'USD', TRUE],
['1.234.567,89', ',', '.', 'USD', TRUE],
- ['1234567.89', ',', '.', 'USD', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, ',', '.', 'USD', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', ',', '.', 'USD', TRUE],
+ // This is the float format.
+ [1234567.89, ',', '.', 'USD', TRUE],
['$1,234,567.89', ',', '.', 'USD', FALSE],
['-$1,234,567.89', ',', '.', 'USD', FALSE],
['$-1,234,567.89', ',', '.', 'USD', FALSE],
['-$1 234 567,89', ',', ' ', 'USD', TRUE],
['$-1 234 567,89', ',', ' ', 'USD', TRUE],
['1 234 567,89', ',', ' ', 'USD', TRUE],
- ['1234567.89', ',', ' ', 'USD', TRUE], // This is the float format. Encapsulated in strings
- [1234567.89, ',', ' ', 'USD', TRUE], // This is the float format.
+ // This is the float format. Encapsulated in strings
+ ['1234567.89', ',', ' ', 'USD', TRUE],
+ // This is the float format.
+ [1234567.89, ',', ' ', 'USD', TRUE],
];
}