File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -733,12 +733,20 @@ abstract class AbstractDataProviderTest extends TestCase
733733
734734 private static $ rootLocales ;
735735
736+ private $ defaultLocale ;
737+
736738 protected function setUp (): void
737739 {
740+ $ this ->defaultLocale = \Locale::getDefault ();
738741 \Locale::setDefault ('en ' );
739742 Locale::setDefaultFallback ('en ' );
740743 }
741744
745+ protected function tearDown (): void
746+ {
747+ \Locale::setDefault ($ this ->defaultLocale );
748+ }
749+
742750 public function provideLocales ()
743751 {
744752 return array_map (
Original file line number Diff line number Diff line change @@ -725,13 +725,20 @@ abstract class ResourceBundleTestCase extends TestCase
725725 ];
726726
727727 private static $ rootLocales ;
728+ private $ defaultLocale ;
728729
729730 protected function setUp (): void
730731 {
732+ $ this ->defaultLocale = \Locale::getDefault ();
731733 Locale::setDefault ('en ' );
732734 Locale::setDefaultFallback ('en ' );
733735 }
734736
737+ protected function tearDown (): void
738+ {
739+ \Locale::setDefault ($ this ->defaultLocale );
740+ }
741+
735742 public function provideLocales ()
736743 {
737744 return array_map (
You can’t perform that action at this time.
0 commit comments