1--TEST-- 2Exhaustive test of verification and conversion of CP1251 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/CP1251.txt', 'CP1251'); 13 14// Test "long" illegal character markers 15mb_substitute_character("long"); 16convertInvalidString("\x98", "%", "CP1251", "UTF-8"); 17convertInvalidString("\x12\x34", "U+1234", "UTF-16BE", "CP1251"); 18 19echo "Done!\n"; 20?> 21--EXPECT-- 22Tested CP1251 -> UTF-16BE 23Tested UTF-16BE -> CP1251 24Done! 25