|
@@ -138,6 +138,19 @@ class TestUGC extends PHPUnit_Framework_TestCase
|
|
|
}
|
|
|
return $result;
|
|
|
}
|
|
|
+ public function testEmojj()
|
|
|
+ {
|
|
|
+ $mod_comment = Model('ugc_comment');
|
|
|
+ $item = $mod_comment->getCommentByID(552);
|
|
|
+ }
|
|
|
+ public function testU16()
|
|
|
+ {
|
|
|
+ $str = "托尔斯泰🇺🇸🌹😃😄";
|
|
|
+ $s = iconv('UTF-16', 'UTF-8', $str);
|
|
|
+ $y = iconv_get_encoding();
|
|
|
+ $len = iconv_strlen($str,'UTF-8');
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|