Skip to content

Commit

Permalink
Explicitly require mandatory locale for test
Browse files Browse the repository at this point in the history
This test works only if executed with LC_COLLATE=en_US
  • Loading branch information
pabzm committed Sep 18, 2024
1 parent a86a6fd commit 83a4b3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Framework/ImapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public function test_convert_criteria()
*/
public function test_sort_folder_list()
{
// The sorting requires this locale.
if (setlocale(\LC_ALL, 'en_US.UTF-8', 'en_US') === false) {
throw new \Error('This test requires `en_US.UTF-8` or `en_US` to be settable as locale, but those appear to not be present in your environment!');
}

$_SESSION['imap_delimiter'] = '.';
$_SESSION['imap_namespace'] = [
'personal' => null,
Expand Down

0 comments on commit 83a4b3c

Please sign in to comment.