Skip to content

Commit 7bfc595

Browse files
minor #60177 [Form] skip test if the installed ICU version is too modern (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Form] skip test if the installed ICU version is too modern | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 201bafc skip test if the installed ICU version is too modern
2 parents 0ddda13 + 201bafc commit 7bfc595

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\Form\Extension\Core\DataTransformer\BaseDateTimeTransformer;
1616
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToLocalizedStringTransformer;
1717
use Symfony\Component\Form\Tests\Extension\Core\DataTransformer\Traits\DateTimeEqualsTrait;
18+
use Symfony\Component\Intl\Intl;
1819
use Symfony\Component\Intl\Util\IntlTestHelper;
1920

2021
class DateTimeToLocalizedStringTransformerTest extends BaseDateTimeTransformerTestCase
@@ -236,6 +237,10 @@ public function testReverseTransformFullTime()
236237

237238
public function testReverseTransformFromDifferentLocale()
238239
{
240+
if (version_compare(Intl::getIcuVersion(), '71.1', '>')) {
241+
$this->markTestSkipped('ICU version 71.1 or lower is required.');
242+
};
243+
239244
\Locale::setDefault('en_US');
240245

241246
$transformer = new DateTimeToLocalizedStringTransformer('UTC', 'UTC');

0 commit comments

Comments
 (0)