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
733
733
734
734
private static $ rootLocales ;
735
735
736
+ private $ defaultLocale ;
737
+
736
738
protected function setUp (): void
737
739
{
740
+ $ this ->defaultLocale = \Locale::getDefault ();
738
741
\Locale::setDefault ('en ' );
739
742
Locale::setDefaultFallback ('en ' );
740
743
}
741
744
745
+ protected function tearDown (): void
746
+ {
747
+ \Locale::setDefault ($ this ->defaultLocale );
748
+ }
749
+
742
750
public function provideLocales ()
743
751
{
744
752
return array_map (
Original file line number Diff line number Diff line change @@ -725,13 +725,20 @@ abstract class ResourceBundleTestCase extends TestCase
725
725
];
726
726
727
727
private static $ rootLocales ;
728
+ private $ defaultLocale ;
728
729
729
730
protected function setUp (): void
730
731
{
732
+ $ this ->defaultLocale = \Locale::getDefault ();
731
733
Locale::setDefault ('en ' );
732
734
Locale::setDefaultFallback ('en ' );
733
735
}
734
736
737
+ protected function tearDown (): void
738
+ {
739
+ \Locale::setDefault ($ this ->defaultLocale );
740
+ }
741
+
735
742
public function provideLocales ()
736
743
{
737
744
return array_map (
You can’t perform that action at this time.
0 commit comments