We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b971ca9 commit 92e9783Copy full SHA for 92e9783
tests/Dotenv/ParserTest.php
@@ -46,4 +46,18 @@ public function testParseInvalidName()
46
{
47
Parser::parse('FOO_ASD!=BAZ');
48
}
49
+
50
+ /**
51
+ * @expectedException \Dotenv\Exception\InvalidFileException
52
+ * @expectedExceptionMessageRegExp /Failed to parse dotenv file due to a quote parsing error.+/
53
+ */
54
+ public function testParserFailsWithException()
55
+ {
56
+ $default = 1000000;
57
+ $limit = (int) ini_get('pcre.backtrack_limit');
58
+ if($limit != $default) {
59
+ $this->markTestIncomplete();
60
+ }
61
+ Parser::parse('FOO_BAD="iiiiviiiixiiiiviiii\\n"');
62
63
0 commit comments