Skip to content

Commit 412fcf5

Browse files
minor #35056 Fixed test added in #35022 (GrahamCampbell)
This PR was merged into the 3.4 branch. Discussion ---------- Fixed test added in #35022 | Q | A | ------------- | --- | Branch? | master for features / 3.4, 4.3, 4.4 or 5.0 for bug fixes <!-- see below --> | Bug fix? | yes/no | New feature? | yes/no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | yes/no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch master. --> Commits ------- 6eeec7c Fixed test added in #35022
2 parents 1908434 + 6eeec7c commit 412fcf5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Symfony/Component/Dotenv/Tests/DotenvTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,12 @@ public function testGetVariablesValueFromGetenv()
320320
putenv('Foo=Bar');
321321

322322
$dotenv = new Dotenv(true);
323-
$values = $dotenv->parse('Foo=${Foo}');
324-
$this->assertSame('Bar', $values['Foo']);
325323

326-
putenv('Foo');
324+
try {
325+
$values = $dotenv->parse('Foo=${Foo}');
326+
$this->assertSame('Bar', $values['Foo']);
327+
} finally {
328+
putenv('Foo');
329+
}
327330
}
328331
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy