diff --git a/tests/suites/unit/joomla/string/JStringTest.php b/tests/suites/unit/joomla/string/JStringTest.php index 15013819ce..31c184e1d8 100644 --- a/tests/suites/unit/joomla/string/JStringTest.php +++ b/tests/suites/unit/joomla/string/JStringTest.php @@ -403,6 +403,7 @@ public function testStrcmp($string1, $string2, $locale, $expect) } elseif ($locale != false && !setlocale(LC_COLLATE, $locale)) { + // If the locale is not available, we can't have to transcode the string and can't reliably compare it. $this->markTestSkipped("Locale {$locale} is not available."); } else diff --git a/tests/suites/unit/joomla/utilities/JArrayHelperTest.php b/tests/suites/unit/joomla/utilities/JArrayHelperTest.php index 55c5e2d908..049cf8bccc 100644 --- a/tests/suites/unit/joomla/utilities/JArrayHelperTest.php +++ b/tests/suites/unit/joomla/utilities/JArrayHelperTest.php @@ -1488,6 +1488,7 @@ public function testSortObjects($input, $key, $direction, $casesensitive, $local } elseif ($locale != false && !setlocale(LC_COLLATE, $locale)) { + // If the locale is not available, we can't have to transcode the string and can't reliably compare it. $this->markTestSkipped("Locale {$locale} is not available."); return; }