1--TEST--
2Exhaustive test of verification and conversion of EUC-CN text
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
8?>
9--FILE--
10<?php
11include('encoding_tests.inc');
12testEncodingFromUTF16ConversionTable(__DIR__ . '/data/EUC-CN.txt', 'EUC-CN');
13
14// Test "long" illegal character markers
15mb_substitute_character("long");
16convertInvalidString("\x80", "%", "EUC-CN", "UTF-8");
17convertInvalidString("\xA1\x50", "%", "EUC-CN", "UTF-8");
18convertInvalidString("\xF7\xFF", "%", "EUC-CN", "UTF-8");
19
20echo "Done!\n";
21?>
22--EXPECT--
23Tested EUC-CN -> UTF-16BE
24Tested UTF-16BE -> EUC-CN
25Done!
26