summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2011-10-15 16:00:46 +0100
committerAnika Henke <anika@selfthinker.org>2011-10-15 16:00:46 +0100
commitd98986013f4cf837203b8c4e18bb4d4ef106edc7 (patch)
treee2c258705a49697bd5b9cdbd7fbceb5f24d3f38a
parentfe13bd81bd93d84c12b23f8daa1f60c8a003d30b (diff)
downloadrpg-d98986013f4cf837203b8c4e18bb4d4ef106edc7.tar.gz
rpg-d98986013f4cf837203b8c4e18bb4d4ef106edc7.tar.bz2
added test case for non-breaking spaces in headlines and pagenames (to accompany FS#2291)
-rw-r--r--_test/cases/inc/utf8_stripspecials.test.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/_test/cases/inc/utf8_stripspecials.test.php b/_test/cases/inc/utf8_stripspecials.test.php
index 85df75fa1..481f47650 100644
--- a/_test/cases/inc/utf8_stripspecials.test.php
+++ b/_test/cases/inc/utf8_stripspecials.test.php
@@ -17,6 +17,7 @@ class utf8_stripspecials extends UnitTestCase {
$tests[] = array('ascii.string','','\._\-:\*','asciistring');
$tests[] = array('ascii.string',' ','\._\-:\*','ascii string');
$tests[] = array('2.1.14',' ','\._\-:\*','2 1 14');
+ $tests[] = array('string with nbsps','_','\*','string_with_nbsps');
foreach($tests as $test){
$this->assertEqual(utf8_stripspecials($test[0],$test[1],$test[2]),$test[3]);