|
16 | 16 | use libphonenumber\PhoneNumberFormat; |
17 | 17 | use libphonenumber\PhoneNumberUtil; |
18 | 18 | use Misd\PhoneNumberBundle\Form\Type\PhoneNumberType; |
| 19 | +use Misd\PhoneNumberBundle\Tests\PhoneNumberSuiteConfig; |
19 | 20 | use PHPUnit\Framework\TestCase; |
20 | 21 | use Symfony\Component\Form\ChoiceList\View\ChoiceView; |
21 | 22 | use Symfony\Component\Form\FormFactoryInterface; |
@@ -136,7 +137,7 @@ public function countryChoiceValuesProvider(): iterable |
136 | 137 | */ |
137 | 138 | public function testCountryChoiceChoices(array $choices, int $expectedChoicesCount, array $expectedChoices): void |
138 | 139 | { |
139 | | - IntlTestHelper::requireIntl($this); |
| 140 | + IntlTestHelper::requireIntl($this, PhoneNumberSuiteConfig::ICU_MINIMUM_VERSION); |
140 | 141 |
|
141 | 142 | $form = $this->factory->create( |
142 | 143 | PhoneNumberType::class, |
@@ -258,7 +259,7 @@ public function countryChoiceFormatProvider(): iterable |
258 | 259 | */ |
259 | 260 | public function testCountryChoicePlaceholder(?string $placeholder, ?string $expectedPlaceholder): void |
260 | 261 | { |
261 | | - IntlTestHelper::requireIntl($this); |
| 262 | + IntlTestHelper::requireIntl($this, PhoneNumberSuiteConfig::ICU_MINIMUM_VERSION); |
262 | 263 | $form = $this->factory->create(PhoneNumberType::class, null, [ |
263 | 264 | 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, |
264 | 265 | 'country_placeholder' => $placeholder, |
@@ -286,7 +287,7 @@ public function countryChoicePlaceholderProvider(): iterable |
286 | 287 |
|
287 | 288 | public function testCountryChoiceTranslations(): void |
288 | 289 | { |
289 | | - IntlTestHelper::requireFullIntl($this); |
| 290 | + IntlTestHelper::requireFullIntl($this, PhoneNumberSuiteConfig::ICU_MINIMUM_VERSION); |
290 | 291 | \Locale::setDefault('fr'); |
291 | 292 |
|
292 | 293 | $form = $this->factory->create(PhoneNumberType::class, null, [ |
|
0 commit comments