/**
  * Convert * to UTF-8 using iconv
  *
  * Special cases only
  * @depends test_has_iconv
  * @dataProvider toUTF8_iconv
  */
 public function test_convert_UTF8_iconv($input, $expected, $encoding)
 {
     $encoding = SimplePie_Misc::encoding($encoding);
     $this->assertEquals($expected, Mock_Misc::change_encoding_iconv($input, $encoding, 'UTF-8'));
 }
Exemple #2
0
 /**
  * Convert * to UTF-8 using iconv
  *
  * Special cases only
  * @depends test_has_iconv
  * @dataProvider toUTF8_iconv
  */
 public function test_convert_UTF8_iconv($input, $expected, $encoding)
 {
     $encoding = SimplePie_Misc::encoding($encoding);
     if (version_compare(phpversion(), '5.3', '<')) {
         $this->assertEquals($expected, Mock_Misc::__callStatic('change_encoding_iconv', array($input, $encoding, 'UTF-8')));
     } else {
         $this->assertEquals($expected, Mock_Misc::change_encoding_iconv($input, $encoding, 'UTF-8'));
     }
 }