Skip to content

Commit 73dcfb6

Browse files
committed
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...
1 parent 842be67 commit 73dcfb6

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

ext/mbstring/tests/bug46806.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #46806 (mb_wtrimwidth cutting to early)
2+
Bug #46806 (mb_strimwidth cutting too early)
33
--CREDITS--
44
Sebastian Schürmann
55
sebs@php.net

ext/mbstring/tests/bug77428.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not availab
1010

1111
// This behavior is broken, but kept for BC reasons
1212
var_dump(mb_ereg_replace('(%)', '\\\1', 'a%c'));
13-
// For clarify, the above line is equivalent to:
13+
// For clarity, the above line is equivalent to:
1414
var_dump(mb_ereg_replace('(%)', '\\\\1', 'a%c'));
1515

1616
?>

ext/mbstring/tests/casemapping.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ toCases("ff");
2323
toCases("İ");
2424

2525
// Make sure that case-conversion in Turkish still works correctly.
26-
// Using the language-agnostic Unicode case mappins would result in
26+
// Using the language-agnostic Unicode case mappings would result in
2727
// characters that are illegal under ISO-8859-9.
2828
mb_internal_encoding('ISO-8859-9');
2929

ext/mbstring/tests/mb_convert_encoding.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
1616
// EUC-JP string
1717
$euc_jp = '日本語テキストです。0123456789。';
1818

19-
// Test with sigle "form encoding"
20-
// Note: For some reason it complains, results are differ. Not reserched.
19+
// Test with single "form encoding"
20+
// Note: For some reason it complains, results are different. Not researched.
2121
echo "== BASIC TEST ==\n";
2222
$s = $sjis;
2323
$s = mb_convert_encoding($s, 'EUC-JP', 'SJIS');

ext/mbstring/tests/mb_convert_variables.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
1919
// EUC-JP string
2020
$euc_jp = '日本語テキストです。0123456789。';
2121

22-
// Test for single scaler
23-
echo "== SCALER TEST ==\n";
22+
// Test for single scalar
23+
echo "== SCALAR TEST ==\n";
2424
$s = $sjis;
2525
$encoding = mb_convert_variables('EUC-JP', 'SJIS', $s);
2626
print("$encoding\n"); // SJIS
@@ -116,8 +116,8 @@ print("$encoding\n"); // EUC-JP
116116
print("{$oo->s1}{$oo->s2}{$oo->s3}\n"); // Converted to EUC-JP
117117

118118

119-
// Test for scaler, array and object
120-
echo "== SCALER, ARRAY AND OBJECT TEST ==\n";
119+
// Test for scalar, array and object
120+
echo "== SCALAR, ARRAY AND OBJECT TEST ==\n";
121121

122122
$s1 = $euc_jp;
123123
$s2 = $euc_jp;
@@ -134,7 +134,7 @@ print("{$oo->s1}{$oo->s2}{$oo->s3}\n"); // Converted to EUC-JP
134134

135135
?>
136136
--EXPECT--
137-
== SCALER TEST ==
137+
== SCALAR TEST ==
138138
SJIS
139139
日本語テキストです。0123456789。
140140
JIS
@@ -155,7 +155,7 @@ EUC-JP
155155
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。
156156
EUC-JP
157157
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。
158-
== SCALER, ARRAY AND OBJECT TEST ==
158+
== SCALAR, ARRAY AND OBJECT TEST ==
159159
EUC-JP
160160
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。
161161
日本語テキストです。0123456789。日本語テキストです。0123456789。日本語テキストです。0123456789。

ext/mbstring/tests/mb_detect_encoding.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ $jis = base64_decode('GyRCRnxLXDhsJUYlLSU5JUgkRyQ5ISMbKEIwMTIzNBskQiM1IzYjNyM4Iz
1515
// EUC-JP string
1616
$euc_jp = '日本語テキストです。0123456789。';
1717

18-
// Test with sigle "form encoding"
19-
// Note: For some reason it complains, results are differ. Not reserched.
18+
// Test with single "form encoding"
19+
// Note: For some reason it complains, results are different. Not researched.
2020
echo "== BASIC TEST ==\n";
2121
$s = $sjis;
2222
$s = mb_detect_encoding($s, 'SJIS');

ext/mbstring/tests/mb_encode_mimeheader_basic3.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is n
1111
* Test mb_encode_header() with different strings
1212
*/
1313

14-
echo "*** Testing mb_encode_mimeheader() : basic2 ***\n";
14+
echo "*** Testing mb_encode_mimeheader() : basic3 ***\n";
1515

1616
//All strings are the same when displayed in their respective encodings
1717
$sjis_string = base64_decode('k/qWe4zqg2WDTINYg2eCxYK3gUIwMTIzNIJUglWCVoJXgliBQg==');
@@ -35,7 +35,7 @@ foreach ($inputs as $lang => $input) {
3535
echo "Done";
3636
?>
3737
--EXPECT--
38-
*** Testing mb_encode_mimeheader() : basic2 ***
38+
*** Testing mb_encode_mimeheader() : basic3 ***
3939

4040
Language: SJIS
4141
-- Base 64: --

0 commit comments

Comments
 (0)