Skip to content

Commit 1474314

Browse files
Merge branch '3.4' into 4.3
* 3.4: Add missing use statement [Profiler] wording X-Accel Nginx URL updated ticket-30197 [Validator] Add the missing translations for the Chinese (Taiwan) ("zh_TW") locale Fixed test added in #35022 Use locale_parse for computing fallback locales [Console] Fix filtering out identical alternatives when there is a command loader
2 parents 746e751 + e22ca48 commit 1474314

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Tests/DotenvTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,13 @@ public function testGetVariablesValueFromGetenv()
436436
putenv('Foo=Bar');
437437

438438
$dotenv = new Dotenv(true);
439-
$values = $dotenv->parse('Foo=${Foo}');
440-
$this->assertSame('Bar', $values['Foo']);
441439

442-
putenv('Foo');
440+
try {
441+
$values = $dotenv->parse('Foo=${Foo}');
442+
$this->assertSame('Bar', $values['Foo']);
443+
} finally {
444+
putenv('Foo');
445+
}
443446
}
444447

445448
/**

0 commit comments

Comments
 (0)