added test case for non-breaking spaces in headlines and pagenames (to accompany FS#2291)

This commit is contained in:
Anika Henke 2011-10-15 16:00:46 +01:00
parent fe13bd81bd
commit d98986013f

View file

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