Skip to content

Commit

Permalink
skip FS#2867 test if \s doesn't match \xA0 after attempting to change…
Browse files Browse the repository at this point in the history
… the locale
  • Loading branch information
Chris--S committed Oct 25, 2013
1 parent 1f6e92f commit 0113757
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _test/tests/inc/auth_loadacl.test.php
Expand Up @@ -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 {
Expand Down Expand Up @@ -99,6 +100,11 @@ function test_FS2867() {
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');

Expand Down

0 comments on commit 0113757

Please sign in to comment.