[Yaml] fixed a test when iconv is not installed

This commit is contained in:
Fabien Potencier 2012-04-20 12:33:18 +02:00
parent 9b5be1df2a
commit 2c61966daa

View File

@ -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;
}