From 8ef61d93a4dc567f92ebf244f4bf6e2b76ab5752 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 31 Dec 2023 19:47:22 +0100 Subject: [PATCH] skip some tests that do not work with ICU 71.1/72.1 --- .../Extension/Core/Type/DateTypeTest.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php index b892a1c34ea6e..6b6a1d15d362c 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php @@ -91,8 +91,8 @@ public function testSubmitFromSingleTextDateTime() // we test against "de_DE", so we need the full implementation IntlTestHelper::requireFullIntl($this, false); - if ('71.1' === Intl::getIcuVersion()) { - $this->markTestSkipped('Skipping test due to a bug in ICU 71.1.'); + if (\in_array(Intl::getIcuVersion(), ['71.1', '72.1'], true)) { + $this->markTestSkipped('Skipping test due to a bug in ICU 71.1/72.1.'); } \Locale::setDefault('de_DE'); @@ -117,8 +117,8 @@ public function testSubmitFromSingleTextDateTimeImmutable() // we test against "de_DE", so we need the full implementation IntlTestHelper::requireFullIntl($this, false); - if ('71.1' === Intl::getIcuVersion()) { - $this->markTestSkipped('Skipping test due to a bug in ICU 71.1.'); + if (\in_array(Intl::getIcuVersion(), ['71.1', '72.1'], true)) { + $this->markTestSkipped('Skipping test due to a bug in ICU 71.1/72.1.'); } \Locale::setDefault('de_DE'); @@ -144,8 +144,8 @@ public function testSubmitFromSingleTextString() // we test against "de_DE", so we need the full implementation IntlTestHelper::requireFullIntl($this, false); - if ('71.1' === Intl::getIcuVersion()) { - $this->markTestSkipped('Skipping test due to a bug in ICU 71.1.'); + if (\in_array(Intl::getIcuVersion(), ['71.1', '72.1'], true)) { + $this->markTestSkipped('Skipping test due to a bug in ICU 71.1/72.1.'); } \Locale::setDefault('de_DE'); @@ -170,8 +170,8 @@ public function testSubmitFromSingleTextTimestamp() // we test against "de_DE", so we need the full implementation IntlTestHelper::requireFullIntl($this, false); - if ('71.1' === Intl::getIcuVersion()) { - $this->markTestSkipped('Skipping test due to a bug in ICU 71.1.'); + if (\in_array(Intl::getIcuVersion(), ['71.1', '72.1'], true)) { + $this->markTestSkipped('Skipping test due to a bug in ICU 71.1/72.1.'); } \Locale::setDefault('de_DE'); @@ -198,8 +198,8 @@ public function testSubmitFromSingleTextRaw() // we test against "de_DE", so we need the full implementation IntlTestHelper::requireFullIntl($this, false); - if ('71.1' === Intl::getIcuVersion()) { - $this->markTestSkipped('Skipping test due to a bug in ICU 71.1.'); + if (\in_array(Intl::getIcuVersion(), ['71.1', '72.1'], true)) { + $this->markTestSkipped('Skipping test due to a bug in ICU 71.1/72.1.'); } \Locale::setDefault('de_DE');