소스 검색

[Locale] skip test if intl extension is not loaded

Eriksen Costa 14 년 전
부모
커밋
0be12d7a89
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tests/Symfony/Tests/Component/Locale/Stub/StubIntlDateFormatterTest.php

+ 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));
     }