1--TEST-- 2Exhaustive test of verification and conversion of CP1254 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/CP1254.txt', 'CP1254'); 13 14// Test "long" illegal character markers 15mb_substitute_character("long"); 16convertInvalidString("\x81", "%", "CP1254", "UTF-8"); 17convertInvalidString("\x9E", "%", "CP1254", "UTF-8"); 18 19// Test replacement character which cannot be encoded in CP1254 20mb_substitute_character(0x1234); 21convertInvalidString("\x23\x45", '?', 'UTF-16BE', 'CP1254'); 22 23echo "Done!\n"; 24?> 25--EXPECT-- 26Tested CP1254 -> UTF-16BE 27Tested UTF-16BE -> CP1254 28Done! 29