diff --git a/src/Symfony/Component/Dotenv/Tests/DotenvTest.php b/src/Symfony/Component/Dotenv/Tests/DotenvTest.php index ded78faaa78b2..63039d5660286 100644 --- a/src/Symfony/Component/Dotenv/Tests/DotenvTest.php +++ b/src/Symfony/Component/Dotenv/Tests/DotenvTest.php @@ -431,4 +431,14 @@ public function testNoDeprecationWarning() $dotenv = new Dotenv(false); $this->assertInstanceOf(Dotenv::class, $dotenv); } + + public function testDoNotUsePutenv() + { + $dotenv = new Dotenv(false); + $dotenv->populate(['TEST_USE_PUTENV' => 'no']); + + $this->assertSame('no', $_SERVER['TEST_USE_PUTENV']); + $this->assertSame('no', $_ENV['TEST_USE_PUTENV']); + $this->assertFalse(getenv('TEST_USE_PUTENV')); + } }
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: