diff --git a/tests/Dotenv/DotenvTest.php b/tests/Dotenv/DotenvTest.php index 9f778642..3585524f 100644 --- a/tests/Dotenv/DotenvTest.php +++ b/tests/Dotenv/DotenvTest.php @@ -65,6 +65,7 @@ public function testQuotedDotenvLoadsEnvironmentVars() $this->assertEmpty(getenv('QNULL')); $this->assertSame('pgsql:host=localhost;dbname=test', getenv('QEQUALS')); $this->assertSame('test some escaped characters like a quote (") or maybe a backslash (\\)', getenv('QESCAPED')); + $this->assertSame('iiiiviiiixiiiiviiii\\n', getenv('QSLASH')); } public function testLargeDotenvLoadsEnvironmentVars() diff --git a/tests/fixtures/env/quoted.env b/tests/fixtures/env/quoted.env index 2f3ae904..6a47aaaa 100644 --- a/tests/fixtures/env/quoted.env +++ b/tests/fixtures/env/quoted.env @@ -7,3 +7,4 @@ QNULL="" QWHITESPACE = "no space" QESCAPED="test some escaped characters like a quote (\") or maybe a backslash (\\)" +QSLASH="iiiiviiiixiiiiviiii\n"