10000 skip a test that does not work with ICU 71.1 · symfony/symfony@f62735d · GitHub
[go: up one dir, main page]

Skip to content

Commit f62735d

Browse files
committed
skip a test that does not work with ICU 71.1
1 parent ce95b87 commit f62735d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Form\ChoiceList\View\ChoiceView;
1515
use Symfony\Component\Form\FormError;
1616
use Symfony\Component\Form\FormInterface;
17+
use Symfony\Component\Intl\Intl;
1718
use Symfony\Component\Intl\Util\IntlTestHelper;
1819
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
1920

@@ -90,6 +91,10 @@ public function testSubmitFromSingleTextDateTime()
9091
// we test against "de_DE", so we need the full implementation
9192
IntlTestHelper::requireFullIntl($this, false);
9293

94+
if (Intl::getIcuVersion() === '71.1') {
95+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
96+
}
97+
9398
\Locale::setDefault('de_DE');
9499

95100
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -112,6 +117,10 @@ public function testSubmitFromSingleTextDateTimeImmutable()
112117
// we test against "de_DE", so we need the full implementation
113118
IntlTestHelper::requireFullIntl($this, false);
114119

120+
if (Intl::getIcuVersion() === '71.1') {
121+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
122+
}
123+
115124
\Locale::setDefault('de_DE');
116125

117126
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -135,6 +144,10 @@ public function testSubmitFromSingleTextString()
135144
// we test against "de_DE", so we need the full implementation
136145
IntlTestHelper::requireFullIntl($this, false);
137146

147+
if (Intl::getIcuVersion() === '71.1') {
148+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
149+
}
150+
138151
\Locale::setDefault('de_DE');
139152

140153
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -157,6 +170,10 @@ public function testSubmitFromSingleTextTimestamp()
157170
// we test against "de_DE", so we need the full implementation
158171
IntlTestHelper::requireFullIntl($this, false);
159172

173+
if (Intl::getIcuVersion() === '71.1') {
174+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
175+
}
176+
160177
\Locale::setDefault('de_DE');
161178

162179
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -181,6 +198,10 @@ public function testSubmitFromSingleTextRaw()
181198
// we test against "de_DE", so we need the full implementation
182199
IntlTestHelper::requireFullIntl($this, false);
183200

201+
if (Intl::getIcuVersion() === '71.1') {
202+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
203+
}
204+
184205
\Locale::setDefault('de_DE');
185206

186207
$form = $this->factory->create(static::TESTED_TYPE, null, [

0 commit comments

Comments
 (0)
0