We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad49a7 commit efd677aCopy full SHA for efd677a
Tests/DotenvTest.php
@@ -431,4 +431,14 @@ public function testNoDeprecationWarning()
431
$dotenv = new Dotenv(false);
432
$this->assertInstanceOf(Dotenv::class, $dotenv);
433
}
434
+
435
+ public function testDoNotUsePutenv()
436
+ {
437
+ $dotenv = new Dotenv(false);
438
+ $dotenv->populate(['TEST_USE_PUTENV' => 'no']);
439
440
+ $this->assertSame('no', $_SERVER['TEST_USE_PUTENV']);
441
+ $this->assertSame('no', $_ENV['TEST_USE_PUTENV']);
442
+ $this->assertFalse(getenv('TEST_USE_PUTENV'));
443
+ }
444
0 commit comments