Skip to content

Commit

Permalink
Test parsing quoted slash
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jan 28, 2019
1 parent 5f0fbb8 commit e53b2c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Dotenv/DotenvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/env/quoted.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ QNULL=""
QWHITESPACE = "no space"

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

0 comments on commit e53b2c3

Please sign in to comment.