Skip to content

Commit 822e436

Browse files
committed
Explicitly require mandatory locale for test
This test works only if executed with LC_COLLATE=en_US
1 parent a86a6fd commit 822e436

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Framework/ImapTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public function test_convert_criteria()
4747
*/
4848
public function test_sort_folder_list()
4949
{
50+
// The sorting requires this locale.
51+
if (setlocale(\LC_ALL, 'en_US.UTF-8', 'en_US.utf8', 'en_US', 'en-US') === false) {
52+
throw new \Error('This test requires `en_US` to be settable as locale, but those appear to not be present in your environment!');
53+
}
54+
5055
$_SESSION['imap_delimiter'] = '.';
5156
$_SESSION['imap_namespace'] = [
5257
'personal' => null,

0 commit comments

Comments
 (0)