浏览代码

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