diff --git a/tests/Zend/Validate/FloatTest.php b/tests/Zend/Validate/FloatTest.php index 52194bc6e..bb5245afb 100644 --- a/tests/Zend/Validate/FloatTest.php +++ b/tests/Zend/Validate/FloatTest.php @@ -185,7 +185,8 @@ public function testPhpLocaleDeFloatType() */ public function testPhpLocaleFrFloatType() { - $locale = setlocale(LC_ALL, 'fr'); + $locale = setlocale(LC_ALL, 0); + setlocale(LC_ALL, 'fr'); $valid = new Zend_Validate_Float(); $isValid = $valid->isValid(10.5); setlocale(LC_ALL, $locale); @@ -197,8 +198,10 @@ public function testPhpLocaleFrFloatType() */ public function testPhpLocaleDeStringType() { - $lcAll = setlocale(LC_ALL, 'de_AT'); - $lcNumeric = setlocale(LC_NUMERIC, 'de_AT'); + $lcAll = setlocale(LC_ALL, 0); + setlocale(LC_ALL, 'de_AT'); + $lcNumeric = setlocale(LC_NUMERIC, 0); + setlocale(LC_NUMERIC, 'de_AT'); $valid = new Zend_Validate_Float('de_AT'); $isValid0 = $valid->isValid('1,3'); $isValid1 = $valid->isValid('1000,3');