mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fix typos in mbstring tests
Man, I can be pedantic sometimes. Tiny little things like misspelled words just hurt me inside. So while it's not really a big deal, I couldn't leave these typos alone...
This commit is contained in:
parent
842be67b60
commit
73dcfb6faa
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Bug #46806 (mb_wtrimwidth cutting to early)
|
||||
Bug #46806 (mb_strimwidth cutting too early)
|
||||
--CREDITS--
|
||||
Sebastian Schürmann
|
||||
sebs@php.net
|
||||
|
@ -10,7 +10,7 @@ if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not availab
|
||||
|
||||
// This behavior is broken, but kept for BC reasons
|
||||
var_dump(mb_ereg_replace('(%)', '\\\1', 'a%c'));
|
||||
// For clarify, the above line is equivalent to:
|
||||
// For clarity, the above line is equivalent to:
|
||||
var_dump(mb_ereg_replace('(%)', '\\\\1', 'a%c'));
|
||||
|
||||
?>
|
||||
|
@ -23,7 +23,7 @@ toCases("ff");
|
||||
toCases("İ");
|
||||
|
||||
// Make sure that case-conversion in Turkish still works correctly.
|
||||
// Using the language-agnostic Unicode case mappins would result in
|
||||
// Using the language-agnostic Unicode case mappings would result in
|
||||
// characters that are illegal under ISO-8859-9.
|
||||
mb_internal_encoding('ISO-8859-9');
|
||||
|
||||
|
@ -16,8 +16,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
|
||||
// EUC-JP string
|
||||
$euc_jp = '日本語テキストです。0123456789。';
|
||||
|
||||
// Test with sigle "form encoding"
|
||||
// Note: For some reason it complains, results are differ. Not reserched.
|
||||
// Test with single "form encoding"
|
||||
// Note: For some reason it complains, results are different. Not researched.
|
||||
echo "== BASIC TEST ==\n";
|
||||
$s = $sjis;
|
||||
$s = mb_convert_encoding($s, 'EUC-JP', 'SJIS');
|
||||
|
@ -19,8 +19,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
|
||||
// EUC-JP string
|
||||
$euc_jp = '日本語テキストです。0123456789。';
|
||||
|
||||
// Test for single scaler
|
||||
echo "== SCALER TEST ==\n";
|
||||
// Test for single scalar
|
||||
echo "== SCALAR TEST ==\n";
|
||||
$s = $sjis;
|
||||
$encoding = mb_convert_variables('EUC-JP', 'SJIS', $s);
|
||||
print("$encoding\n"); // SJIS
|
||||
@ -116,8 +116,8 @@ print("$encoding\n"); // EUC-JP
|
||||
print("{$oo->s1}{$oo->s2}{$oo->s3}\n"); // Converted to EUC-JP
|
||||
|
||||
|
||||
// Test for scaler, array and object
|
||||
echo "== SCALER, ARRAY AND OBJECT TEST ==\n";
|
||||
// Test for scalar, array and object
|
||||
echo "== SCALAR, ARRAY AND OBJECT TEST ==\n";
|
||||
|
||||
$s1 = $euc_jp;
|
||||
$s2 = $euc_jp;
|
||||
@ -134,7 +134,7 @@ print("{$oo->s1}{$oo->s2}{$oo->s3}\n"); // Converted to EUC-JP
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
== SCALER TEST ==
|
||||
== SCALAR TEST ==
|
||||
SJIS
|
||||
日本語テキストです。0123456789。
|
||||
JIS
|
||||
@ -155,7 +155,7 @@ EUC-JP
|
||||
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。
|
||||
EUC-JP
|
||||
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。
|
||||
== SCALER, ARRAY AND OBJECT TEST ==
|
||||
== SCALAR, ARRAY AND OBJECT TEST ==
|
||||
EUC-JP
|
||||
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。
|
||||
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。
|
||||
|
@ -15,8 +15,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
|
||||
// EUC-JP string
|
||||
$euc_jp = '日本語テキストです。0123456789。';
|
||||
|
||||
// Test with sigle "form encoding"
|
||||
// Note: For some reason it complains, results are differ. Not reserched.
|
||||
// Test with single "form encoding"
|
||||
// Note: For some reason it complains, results are different. Not researched.
|
||||
echo "== BASIC TEST ==\n";
|
||||
$s = $sjis;
|
||||
$s = mb_detect_encoding($s, 'SJIS');
|
||||
|
@ -11,7 +11,7 @@ function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is n
|
||||
* Test mb_encode_header() with different strings
|
||||
*/
|
||||
|
||||
echo "*** Testing mb_encode_mimeheader() : basic2 ***\n";
|
||||
echo "*** Testing mb_encode_mimeheader() : basic3 ***\n";
|
||||
|
||||
//All strings are the same when displayed in their respective encodings
|
||||
$sjis_string = base64_decode('k/qWe4zqg2WDTINYg2eCxYK3gUIwMTIzNIJUglWCVoJXgliBQg==');
|
||||
@ -35,7 +35,7 @@ foreach ($inputs as $lang => $input) {
|
||||
echo "Done";
|
||||
?>
|
||||
--EXPECT--
|
||||
*** Testing mb_encode_mimeheader() : basic2 ***
|
||||
*** Testing mb_encode_mimeheader() : basic3 ***
|
||||
|
||||
Language: SJIS
|
||||
-- Base 64: --
|
||||
|
Loading…
Reference in New Issue
Block a user