Skip to content

Commit efd677a

Browse files
committed
Test do not use putenv
1 parent fad49a7 commit efd677a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Tests/DotenvTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,4 +431,14 @@ public function testNoDeprecationWarning()
431431
$dotenv = new Dotenv(false);
432432
$this->assertInstanceOf(Dotenv::class, $dotenv);
433433
}
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+
}
434444
}

0 commit comments

Comments
 (0)