summaryrefslogtreecommitdiff
path: root/ext/intl/tests/normalizer_normalize.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/tests/normalizer_normalize.phpt')
-rw-r--r--ext/intl/tests/normalizer_normalize.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/intl/tests/normalizer_normalize.phpt b/ext/intl/tests/normalizer_normalize.phpt
index 238b7423cf..1af9d10da2 100644
--- a/ext/intl/tests/normalizer_normalize.phpt
+++ b/ext/intl/tests/normalizer_normalize.phpt
@@ -39,7 +39,7 @@ function ut_main()
$res_str .= "Invalid normalization form declarations!\n";
}
-
+
$char_a_diaeresis = "\xC3\xA4"; // 'LATIN SMALL LETTER A WITH DIAERESIS' (U+00E4)
$char_a_ring = "\xC3\xA5"; // 'LATIN SMALL LETTER A WITH RING ABOVE' (U+00E5)
$char_o_diaeresis = "\xC3\xB6"; // 'LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6)
@@ -55,7 +55,7 @@ function ut_main()
$char_fi_ligature = "\xEF\xAC\x81"; // 'LATIN SMALL LIGATURE FI' (U+FB01)
$char_long_s_dot = "\xE1\xBA\x9B"; // 'LATIN SMALL LETTER LONG S WITH DOT ABOVE' (U+1E9B)
-
+
$strs = array(
'ABC',
$char_a_diaeresis . '||' . $char_a_ring . '||' . $char_o_diaeresis,
@@ -64,7 +64,7 @@ function ut_main()
$char_fi_ligature,
$char_long_s_dot,
);
-
+
foreach( $forms as $form )
{
foreach( $strs as $str )
@@ -75,15 +75,15 @@ function ut_main()
$str_hex = urlencode($str);
$str_norm_hex = urlencode($str_norm);
- $res_str .= "'$str_hex' normalized to form '{$forms_str[$form]}' is '$str_norm_hex'"
- . "\terror info: '$error_message' ($error_code)\n"
+ $res_str .= "'$str_hex' normalized to form '{$forms_str[$form]}' is '$str_norm_hex'"
+ . "\terror info: '$error_message' ($error_code)\n"
. "";
-
+
$is_norm = ut_norm_is_normalized( $str, $form );
$error_code = intl_get_error_code();
$error_message = intl_get_error_message();
- $res_str .= " is in form '{$forms_str[$form]}'? = " . ($is_norm ? "yes" : "no")
+ $res_str .= " is in form '{$forms_str[$form]}'? = " . ($is_norm ? "yes" : "no")
. "\terror info: '$error_message' ($error_code)\n"
. "";
}