diff --git a/lib/Cake/Test/Case/Utility/HashTest.php b/lib/Cake/Test/Case/Utility/HashTest.php index 3dd1fd399..f81316daa 100644 --- a/lib/Cake/Test/Case/Utility/HashTest.php +++ b/lib/Cake/Test/Case/Utility/HashTest.php @@ -1368,9 +1368,9 @@ class HashTest extends CakeTestCase { public function testSortLocale() { // get the current locale $oldLocale = setlocale(LC_COLLATE, '0'); - - // the de_DE.utf8 locale must be installed on the system where the test is performed - setlocale(LC_COLLATE, 'de_DE.utf8'); + + $updated = setlocale(LC_COLLATE, 'de_DE.utf8'); + $this->skipIf($updated === false, 'Could not set locale to de_DE.utf8, skipping test.'); $items = array( array('Item' => array('entry' => 'Übergabe')),