diff --git a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php index 7e18d71fa607d..087bbf140fb2a 100644 --- a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php +++ b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php @@ -58,6 +58,7 @@ abstract class ConstraintValidatorTestCase extends TestCase protected $propertyPath; protected $constraint; protected $defaultTimezone; + private $defaultLocale; private function doSetUp() { @@ -76,6 +77,7 @@ private function doSetUp() $this->validator = $this->createValidator(); $this->validator->initialize($this->context); + $this->defaultLocale = \Locale::getDefault(); \Locale::setDefault('en'); $this->setDefaultTimezone('UTC'); @@ -84,6 +86,8 @@ private function doSetUp() private function doTearDown() { $this->restoreDefaultTimezone(); + + \Locale::setDefault($this->defaultLocale); } protected function setDefaultTimezone($defaultTimezone)