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 822e436
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.utf8', 'en_US', 'en-US') === false) {
throw new \Error('This test requires `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 822e436

Please sign in to comment.