소스 검색

[Yaml] fixed a test when iconv is not installed

Fabien Potencier 13 년 전
부모
커밋
2c61966daa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tests/Symfony/Tests/Component/Yaml/ParserTest.php

+ 2 - 2
tests/Symfony/Tests/Component/Yaml/ParserTest.php

@@ -118,8 +118,8 @@ EOF
 
     public function testNonUtf8Exception()
     {
-        if (!function_exists('mb_detect_encoding')) {
-            $this->markTestSkipped('Exceptions for non-utf8 charsets require the mb_detect_encoding() function.');
+        if (!function_exists('mb_detect_encoding') || !function_exists('iconv')) {
+            $this->markTestSkipped('Exceptions for non-utf8 charsets require the mb_detect_encoding() and iconv() functions.');
 
             return;
         }