Parcourir la source

[Locale] skip test if intl extension is not loaded

Eriksen Costa il y a 14 ans
Parent
commit
0be12d7a89

+ 1 - 0
tests/Symfony/Tests/Component/Locale/Stub/StubIntlDateFormatterTest.php

@@ -669,6 +669,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
      */
     public function testParseDifferenciesIntl($pattern, $value, $stubExpected, $intlExpected)
     {
+        $this->skipIfIntlExtensionIsNotLoaded();
         $formatter = $this->createIntlFormatter($pattern);
         $this->assertSame($intlExpected, $formatter->parse($value));
     }