Skip to content

Commit 667c0b3

Browse files
Added additional quoted value test case (#333)
1 parent 21c540a commit 667c0b3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/Dotenv/DotenvTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public function testQuotedDotenvLoadsEnvironmentVars()
8686
$this->assertEmpty(getenv('QNULL'));
8787
$this->assertSame('pgsql:host=localhost;dbname=test', getenv('QEQUALS'));
8888
$this->assertSame('test some escaped characters like a quote (") or maybe a backslash (\\)', getenv('QESCAPED'));
89+
$this->assertSame('iiiiviiiixiiiiviiii\\n', getenv('QSLASH'));
8990
}
9091

9192
public function testExportedDotenvLoadsEnvironmentVars()

tests/fixtures/env/quoted.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ QNULL=""
77
QWHITESPACE = "no space"
88

99
QESCAPED="test some escaped characters like a quote (\") or maybe a backslash (\\)"
10+
QSLASH="iiiiviiiixiiiiviiii\\n"

0 commit comments

Comments
 (0)