euc_kr_encoding.phpt 569 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Exhaustive test of verification and conversion of EUC-KR 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/EUC-KR.txt', 'EUC-KR');
  13. // Test "long" illegal character markers
  14. mb_substitute_character("long");
  15. convertInvalidString("\x80", "%", "EUC-KR", "UTF-8");
  16. convertInvalidString("\xA7\xF0", "%", "EUC-KR", "UTF-8");
  17. echo "Done!\n";
  18. ?>
  19. --EXPECT--
  20. Tested EUC-KR -> UTF-16BE
  21. Tested UTF-16BE -> EUC-KR
  22. Done!