From 571cf1c8026dede6994579510ecb8dc604669b13 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 16 Jun 2024 22:17:26 +0200 Subject: [PATCH] skip tests when required intl extension is not installed --- .../Tests/Command/TranslationLintCommandTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Symfony/Component/Translation/Tests/Command/TranslationLintCommandTest.php b/src/Symfony/Component/Translation/Tests/Command/TranslationLintCommandTest.php index c2b81c9d92ff0..128649af4ea7b 100644 --- a/src/Symfony/Component/Translation/Tests/Command/TranslationLintCommandTest.php +++ b/src/Symfony/Component/Translation/Tests/Command/TranslationLintCommandTest.php @@ -21,6 +21,9 @@ final class TranslationLintCommandTest extends TestCase { + /** + * @requires extension intl + */ public function testLintCorrectTranslations() { $translator = new Translator('en'); @@ -59,6 +62,9 @@ public function testLintCorrectTranslations() $this->assertStringContainsString('[OK] All translations are valid.', $display); } + /** + * @requires extension intl + */ public function testLintMalformedIcuTranslations() { $translator = new Translator('en');