uhc_encoding.phpt 535 B

123456789101112131415161718192021
  1. --TEST--
  2. Exhaustive test of verification and conversion of CP949 (UHC) text
  3. --EXTENSIONS--
  4. mbstring
  5. --SKIPIF--
  6. <?php
  7. if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
  8. ?>
  9. --FILE--
  10. <?php
  11. include('encoding_tests.inc');
  12. testEncodingFromUTF16ConversionTable(__DIR__ . '/data/CP949.txt', 'UHC');
  13. // Test "long" illegal character markers
  14. mb_substitute_character("long");
  15. convertInvalidString("\x80", "%", "UHC", "UTF-8");
  16. convertInvalidString("\xA7\xF0", "%", "UHC", "UTF-8");
  17. ?>
  18. --EXPECT--
  19. Tested UHC -> UTF-16BE
  20. Tested UTF-16BE -> UHC