@@ -123,7 +123,7 @@ public function testLoadsUnreadableFile()
123
123
124
124
public function testQuotedDotenvLoadsEnvironmentVars ()
125
125
{
126
- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'quoted.env ' );
126
+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'quoted.env ' );
127
127
$ dotenv ->load ();
128
128
$ this ->assertSame ('bar ' , getenv ('QFOO ' ));
129
129
$ this ->assertSame ('baz ' , getenv ('QBAR ' ));
@@ -138,13 +138,13 @@ public function testSpacedValuesWithoutQuotesThrowsException()
138
138
$ this ->expectException ('InvalidArgumentException ' );
139
139
$ this ->expectExceptionMessage ('.env values containing spaces must be surrounded by quotes. ' );
140
140
141
- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'spaced-wrong.env ' );
141
+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'spaced-wrong.env ' );
142
142
$ dotenv ->load ();
143
143
}
144
144
145
145
public function testLoadsServerGlobals ()
146
146
{
147
- $ dotenv = new Dotenv ($ this ->fixturesFolder , '.env ' );
147
+ $ dotenv = new DotEnv ($ this ->fixturesFolder , '.env ' );
148
148
$ dotenv ->load ();
149
149
150
150
$ this ->assertSame ('bar ' , $ _SERVER ['FOO ' ]);
@@ -155,7 +155,7 @@ public function testLoadsServerGlobals()
155
155
156
156
public function testNamespacedVariables ()
157
157
{
158
- $ dotenv = new Dotenv ($ this ->fixturesFolder , '.env ' );
158
+ $ dotenv = new DotEnv ($ this ->fixturesFolder , '.env ' );
159
159
$ dotenv ->load ();
160
160
161
161
$ this ->assertSame ('complex ' , $ _SERVER ['SimpleConfig.simple.name ' ]);
@@ -164,15 +164,15 @@ public function testNamespacedVariables()
164
164
public function testLoadsGetServerVar ()
165
165
{
166
166
$ _SERVER ['SER_VAR ' ] = 'TT ' ;
167
- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'nested.env ' );
167
+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'nested.env ' );
168
168
$ dotenv ->load ();
169
169
170
170
$ this ->assertSame ('TT ' , $ _ENV ['NVAR7 ' ]);
171
171
}
172
172
173
173
public function testLoadsEnvGlobals ()
174
174
{
175
- $ dotenv = new Dotenv ($ this ->fixturesFolder );
175
+ $ dotenv = new DotEnv ($ this ->fixturesFolder );
176
176
$ dotenv ->load ();
177
177
$ this ->assertSame ('bar ' , $ _ENV ['FOO ' ]);
178
178
$ this ->assertSame ('baz ' , $ _ENV ['BAR ' ]);
@@ -182,7 +182,7 @@ public function testLoadsEnvGlobals()
182
182
183
183
public function testNestedEnvironmentVars ()
184
184
{
185
- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'nested.env ' );
185
+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'nested.env ' );
186
186
$ dotenv ->load ();
187
187
$ this ->assertSame ('{$NVAR1} {$NVAR2} ' , $ _ENV ['NVAR3 ' ]); // not resolved
188
188
$ this ->assertSame ('Hello World! ' , $ _ENV ['NVAR4 ' ]);
@@ -192,7 +192,7 @@ public function testNestedEnvironmentVars()
192
192
193
193
public function testDotenvAllowsSpecialCharacters ()
194
194
{
195
- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'specialchars.env ' );
195
+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'specialchars.env ' );
196
196
$ dotenv ->load ();
197
197
$ this ->assertSame ('$a6^C7k%zs+e^.jvjXk ' , getenv ('SPVAR1 ' ));
198
198
$ this ->assertSame ('?BUty3koaV3%GA*hMAwH}B ' , getenv ('SPVAR2 ' ));
0 commit comments