/** * @covers Symfony\Polyfill\Iconv\Iconv::iconv_strlen * @covers Symfony\Polyfill\Iconv\Iconv::strlen1 * @covers Symfony\Polyfill\Iconv\Iconv::strlen2 */ public function testIconvStrlen() { $this->assertSame(4, iconv_strlen('déjà', 'UTF-8')); $this->assertSame(3, iconv_strlen('한국어', 'UTF-8')); $this->assertSame(4, p::strlen2('déjà')); $this->assertSame(3, p::strlen2('한국어')); }
function iconv_mime_decode($encodedHeaders, $mode = 0, $enc = null) { return p\Iconv::iconv_mime_decode($encodedHeaders, $mode, $enc); }