@@ -123,7 +123,7 @@ public function testLoadsUnreadableFile()
123123
124124 public function testQuotedDotenvLoadsEnvironmentVars ()
125125 {
126- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'quoted.env ' );
126+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'quoted.env ' );
127127 $ dotenv ->load ();
128128 $ this ->assertSame ('bar ' , getenv ('QFOO ' ));
129129 $ this ->assertSame ('baz ' , getenv ('QBAR ' ));
@@ -138,13 +138,13 @@ public function testSpacedValuesWithoutQuotesThrowsException()
138138 $ this ->expectException ('InvalidArgumentException ' );
139139 $ this ->expectExceptionMessage ('.env values containing spaces must be surrounded by quotes. ' );
140140
141- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'spaced-wrong.env ' );
141+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'spaced-wrong.env ' );
142142 $ dotenv ->load ();
143143 }
144144
145145 public function testLoadsServerGlobals ()
146146 {
147- $ dotenv = new Dotenv ($ this ->fixturesFolder , '.env ' );
147+ $ dotenv = new DotEnv ($ this ->fixturesFolder , '.env ' );
148148 $ dotenv ->load ();
149149
150150 $ this ->assertSame ('bar ' , $ _SERVER ['FOO ' ]);
@@ -155,7 +155,7 @@ public function testLoadsServerGlobals()
155155
156156 public function testNamespacedVariables ()
157157 {
158- $ dotenv = new Dotenv ($ this ->fixturesFolder , '.env ' );
158+ $ dotenv = new DotEnv ($ this ->fixturesFolder , '.env ' );
159159 $ dotenv ->load ();
160160
161161 $ this ->assertSame ('complex ' , $ _SERVER ['SimpleConfig.simple.name ' ]);
@@ -164,15 +164,15 @@ public function testNamespacedVariables()
164164 public function testLoadsGetServerVar ()
165165 {
166166 $ _SERVER ['SER_VAR ' ] = 'TT ' ;
167- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'nested.env ' );
167+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'nested.env ' );
168168 $ dotenv ->load ();
169169
170170 $ this ->assertSame ('TT ' , $ _ENV ['NVAR7 ' ]);
171171 }
172172
173173 public function testLoadsEnvGlobals ()
174174 {
175- $ dotenv = new Dotenv ($ this ->fixturesFolder );
175+ $ dotenv = new DotEnv ($ this ->fixturesFolder );
176176 $ dotenv ->load ();
177177 $ this ->assertSame ('bar ' , $ _ENV ['FOO ' ]);
178178 $ this ->assertSame ('baz ' , $ _ENV ['BAR ' ]);
@@ -182,7 +182,7 @@ public function testLoadsEnvGlobals()
182182
183183 public function testNestedEnvironmentVars ()
184184 {
185- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'nested.env ' );
185+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'nested.env ' );
186186 $ dotenv ->load ();
187187 $ this ->assertSame ('{$NVAR1} {$NVAR2} ' , $ _ENV ['NVAR3 ' ]); // not resolved
188188 $ this ->assertSame ('Hello World! ' , $ _ENV ['NVAR4 ' ]);
@@ -192,7 +192,7 @@ public function testNestedEnvironmentVars()
192192
193193 public function testDotenvAllowsSpecialCharacters ()
194194 {
195- $ dotenv = new Dotenv ($ this ->fixturesFolder , 'specialchars.env ' );
195+ $ dotenv = new DotEnv ($ this ->fixturesFolder , 'specialchars.env ' );
196196 $ dotenv ->load ();
197197 $ this ->assertSame ('$a6^C7k%zs+e^.jvjXk ' , getenv ('SPVAR1 ' ));
198198 $ this ->assertSame ('?BUty3koaV3%GA*hMAwH}B ' , getenv ('SPVAR2 ' ));
0 commit comments