Skip to content

Commit a91db19

Browse files
Test parsing quoted slash
1 parent d31aac0 commit a91db19

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
@@ -65,6 +65,7 @@ public function testQuotedDotenvLoadsEnvironmentVars()
6565
$this->assertEmpty(getenv('QNULL'));
6666
$this->assertSame('pgsql:host=localhost;dbname=test', getenv('QEQUALS'));
6767
$this->assertSame('test some escaped characters like a quote (") or maybe a backslash (\\)', getenv('QESCAPED'));
68+
$this->assertSame('iiiiviiiixiiiiviiii\\n', getenv('QSLASH'));
6869
}
6970

7071
public function testLargeDotenvLoadsEnvironmentVars()

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)