/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/mbstring/tests/koi8u_encoding.phpt
19 строк
543 B
Alex Dowad
New internal interface for fast text conversion in mbstring
21 дек 2021, 09:33
21 дек 2021, 09:33
3c73225
Код
Авторство
О чём код?
--TEST-- Exhaustive test of verification and conversion of KOI8-U text --EXTENSIONS-- mbstring --SKIPIF-- <?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- <?php include('encoding_tests.inc'); testEncodingFromUTF16ConversionTable(__DIR__ . '/data/KOI8-U.txt', 'KOI8-U'); /* Try replacement character which cannot be encoded in KOI8-U; ? will be used instead */ mb_substitute_character(0x1234); convertInvalidString("\x23\x45", '?', 'UTF-16BE', 'KOI8-U'); ?> --EXPECT-- Tested KOI8-U -> UTF-16BE Tested UTF-16BE -> KOI8-U