Skip to content

Commit 64db133

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: [DependencyInjection] Add missing bool type in procesValue() [CI] Make sure to restore default locale
2 parents 8103e34 + f99f423 commit 64db133

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Translation/Test/TranslatorTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
*/
3131
class TranslatorTest extends TestCase
3232
{
33+
private $defaultLocale;
34+
35+
protected function setUp(): void
36+
{
37+
$this->defaultLocale = \Locale::getDefault();
38+
}
39+
40+
protected function tearDown(): void
41+
{
42+
\Locale::setDefault($this->defaultLocale);
43+
}
44+
3345
public function getTranslator()
3446
{
3547
return new class() implements TranslatorInterface {

0 commit comments

Comments
 (0)