From 71da904de056b5bf5b4e5f1cec2948c558f2e0b8 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 28 Mar 2021 10:05:52 +0200 Subject: [PATCH] skip intl dependent tests if the extension is missing --- .../Form/Tests/Extension/Core/Type/IntegerTypeTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/IntegerTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/IntegerTypeTest.php index 0156b21905c5c..15cf308d990dd 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/IntegerTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/IntegerTypeTest.php @@ -31,6 +31,9 @@ protected function tearDown(): void \Locale::setDefault($this->previousLocale); } + /** + * @requires extension intl + */ public function testArabicLocale() { \Locale::setDefault('ar'); @@ -42,6 +45,9 @@ public function testArabicLocale() $this->assertSame('123456', $form->getViewData()); } + /** + * @requires extension intl + */ public function testArabicLocaleNonHtml5() { \Locale::setDefault('ar');