Skip to content

Commit

Permalink
Update FormatUtilsTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed Jun 7, 2024
1 parent 56ccdb6 commit 8435e09
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/Utils/FormatUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class FormatUtilsTest extends TestCase
protected function setUp(): void
{
\Locale::setDefault(FormatUtils::DEFAULT_LOCALE);
\setlocale(\LC_ALL, FormatUtils::DEFAULT_LOCALE);
}

public static function getAmounts(): \Iterator
Expand Down Expand Up @@ -382,8 +381,6 @@ private static function createDate(): \DateTimeInterface

private function updateLocale(): bool
{
$value = \setlocale(\LC_ALL, FormatUtils::DEFAULT_LOCALE);

return false !== $value && FormatUtils::DEFAULT_LOCALE === $value;
return false !== \ini_set('intl.default_locale', FormatUtils::DEFAULT_LOCALE);
}
}

0 comments on commit 8435e09

Please sign in to comment.