8000 skip tests requiring the intl extension if it's not installed · symfony/symfony@2bcb851 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bcb851

Browse files
committed
skip tests requiring the intl extension if it's not installed
1 parent b7fe7ef commit 2bcb851

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,8 @@ public function testDateTimeImmutableInputTimezoneNotMatchingModelTimezone()
11591159

11601160
public function testSubmitWithCustomCalendarOption()
11611161
{
1162+
IntlTestHelper::requireFullIntl($this);
1163+
11621164
// Creates a new form using the "roc" (Republic Of China) calendar. This calendar starts in 1912, the year 2024 in
11631165
// the Gregorian calendar is the year 113 in the "roc" calendar.
11641166
$form = $this->factory->create(static::TESTED_TYPE, options: [
@@ -1178,6 +1180,8 @@ public function testSubmitWithCustomCalendarOption()
11781180

11791181
public function testSetDataWithCustomCalendarOption()
11801182
{
1183+
IntlTestHelper::requireFullIntl($this);
1184+
11811185
// Creates a new form using the "roc" (Republic Of China) calendar. This calendar starts in 1912, the year 2024 in
11821186
// the Gregorian calendar is the year 113 in the "roc" calendar.
11831187
$form = $this->factory->create(static::TESTED_TYPE, options: [

0 commit comments

Comments
 (0)
0