aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/regression
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-06-26 11:28:58 -0400
committerSteve Clay <steve@mrclay.org>2012-06-26 11:28:58 -0400
commit8a5ddacfa2598b8d984c2cdc6142d41936f38c48 (patch)
tree20878d37bcee06586228eab8c8da5d8ba381e47c /engine/tests/regression
parent4fff20a33467a7318956412d4dabfcab1ce6daba (diff)
downloadelgg-8a5ddacfa2598b8d984c2cdc6142d41936f38c48.tar.gz
elgg-8a5ddacfa2598b8d984c2cdc6142d41936f38c48.tar.bz2
Added NFC conversion where available
Diffstat (limited to 'engine/tests/regression')
-rw-r--r--engine/tests/regression/trac_bugs.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/tests/regression/trac_bugs.php b/engine/tests/regression/trac_bugs.php
index e81bd6936..691433a41 100644
--- a/engine/tests/regression/trac_bugs.php
+++ b/engine/tests/regression/trac_bugs.php
@@ -223,6 +223,12 @@ class ElggCoreRegressionBugsTest extends ElggCoreUnitTest {
"Me &amp; You" => 'me-and-you',
);
+ // where available, string is converted to NFC before transliteration
+ if (ElggTranslit::hasNormalizerSupport()) {
+ $form_d = "A\xCC\x8A"; // A followed by 'COMBINING RING ABOVE' (U+030A)
+ $cases[$form_d] = "a";
+ }
+
foreach ($cases as $case => $expected) {
$friendly_title = elgg_get_friendly_title($case);
$this->assertIdentical($expected, $friendly_title);