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')); + } } 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