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