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:
Alex Dowad 2020-07-30 22:08:25 +02:00
parent 842be67b60
commit 73dcfb6faa
7 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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'));
?>

View File

@ -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');

View File

@ -16,8 +16,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
// EUC-JP string
$euc_jp = '日本語テキストです。01234。';
// 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');

View File

@ -19,8 +19,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
// EUC-JP string
$euc_jp = '日本語テキストです。01234。';
// 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
日本語テキストです。01234
JIS
@ -155,7 +155,7 @@ EUC-JP
日本語テキストです。01234。日本語テキストです。01234。日本語テキストです。01234
EUC-JP
日本語テキストです。01234。日本語テキストです。01234。日本語テキストです。01234
== SCALER, ARRAY AND OBJECT TEST ==
== SCALAR, ARRAY AND OBJECT TEST ==
EUC-JP
日本語テキストです。01234。日本語テキストです。01234。日本語テキストです。01234
日本語テキストです。01234。日本語テキストです。01234。日本語テキストです。01234

View File

@ -15,8 +15,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
// EUC-JP string
$euc_jp = '日本語テキストです。01234。';
// 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');

View File

@ -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: --