Skip to content

Commit 17fbb7e

Browse files
committed
AC-11009::Unit test failure for currency with PHP 8.3
1 parent 7fe2777 commit 17fbb7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Directory/Test/Unit/Model/CurrencyTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,16 @@ function (array $args) {
138138
*/
139139
public function getOutputFormatDataProvider(): array
140140
{
141+
$ar_DZ = "\u{062C}.\u{0645}.\u{200F}\u{00A0}%s";
142+
if (version_compare(PHP_VERSION, '8.3', '>=')) {
143+
$ar_DZ = "%s\u{00A0}\u{062C}.\u{0645}.\u{200F}";
144+
}
141145
return [
142146
'en_US:USD' => ['en_US', 'USD', '$%s'],
143147
'en_US:PLN' => ['en_US', 'PLN', "PLN\u{00A0}%s"],
144148
'en_US:PKR' => ['en_US', 'PKR', "PKR\u{00A0}%s"],
145149
'af_ZA:VND' => ['af_ZA', 'VND', "\u{20AB}%s"],
146-
'ar_DZ:EGP' => ['ar_DZ', 'EGP', "\u{062C}.\u{0645}.\u{200F}\u{00A0}%s"],
150+
'ar_DZ:EGP' => ['ar_DZ', 'EGP', $ar_DZ],
147151
'ar_SA:USD' => ['ar_SA', 'USD', "%s\u{00A0}US$"],
148152
'ar_SA:LBP' => ['ar_SA', 'LBP', "%s\u{00A0}\u{0644}.\u{0644}.\u{200F}"],
149153
'fa_IR:USD' => ['fa_IR', 'USD', "\u{200E}$%s"],

0 commit comments

Comments
 (0)