@@ -35,6 +35,7 @@ class TranslatorTest extends TestCase
35
35
protected function setUp (): void
36
36
{
37
37
$ this ->defaultLocale = \Locale::getDefault ();
38
+ \Locale::setDefault ('en ' );
38
39
}
39
40
40
41
protected function tearDown (): void
@@ -65,7 +66,6 @@ public function testTrans($expected, $id, $parameters)
65
66
public function testTransChoiceWithExplicitLocale ($ expected , $ id , $ number )
66
67
{
67
68
$ translator = $ this ->getTranslator ();
68
- $ translator ->setLocale ('en ' );
69
69
70
70
$ this ->assertEquals ($ expected , $ translator ->trans ($ id , ['%count% ' => $ number ]));
71
71
}
@@ -77,8 +77,6 @@ public function testTransChoiceWithExplicitLocale($expected, $id, $number)
77
77
*/
78
78
public function testTransChoiceWithDefaultLocale ($ expected , $ id , $ number )
79
79
{
80
- \Locale::setDefault ('en ' );
81
-
82
80
$ translator = $ this ->getTranslator ();
83
81
84
82
$ this ->assertEquals ($ expected , $ translator ->trans ($ id , ['%count% ' => $ number ]));
@@ -87,7 +85,6 @@ public function testTransChoiceWithDefaultLocale($expected, $id, $number)
87
85
public function testGetSetLocale ()
88
86
{
89
87
$ translator = $ this ->getTranslator ();
90
- $ translator ->setLocale ('en ' );
91
88
92
89
$ this ->assertEquals ('en ' , $ translator ->getLocale ());
93
90
}
0 commit comments