summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-10-25 14:42:48 +0100
committerChristopher Smith <chris@jalakai.co.uk>2013-10-25 14:42:48 +0100
commit0113757259202e06f0316ef4be0f938b134e6e9c (patch)
tree1a90d197d4985bbc3465e83bb6ac0e0f61b1c34d
parent1f6e92fa1bf9bf1d01cd159a9495657661ea6f4f (diff)
downloadrpg-0113757259202e06f0316ef4be0f938b134e6e9c.tar.gz
rpg-0113757259202e06f0316ef4be0f938b134e6e9c.tar.bz2
skip FS#2867 test if \s doesn't match \xA0 after attempting to change the locale
-rw-r--r--_test/tests/inc/auth_loadacl.test.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/_test/tests/inc/auth_loadacl.test.php b/_test/tests/inc/auth_loadacl.test.php
index 5e7ac3acf..64ab1b9cf 100644
--- a/_test/tests/inc/auth_loadacl.test.php
+++ b/_test/tests/inc/auth_loadacl.test.php
@@ -2,6 +2,7 @@
/**
* auth_loadACL carries out the user & group substitutions
*
+ * @author Chris Smith <chris@jalakai.co.uk>
*/
class auth_loadacl_test extends DokuWikiTest {
@@ -99,6 +100,11 @@ ACL;
setlocale(LC_ALL, "English_United States.1252"); // should only succeed on windows systems
setlocale(LC_ALL, "en_US.UTF-8"); // should succeed on other systems
+ // no point continuing with this test if \s doesn't match A0
+ if (!preg_match('/\s/',"\xa0")) {
+ $this->markTestSkipped('Unable to change locale.');
+ }
+
$_SERVER['REMOTE_USER'] = 'utfठ8';
$USERINFO['grps'] = array('utfठ16','utfठa');