File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -157,21 +157,21 @@ public function testLoadDirectory()
157
157
158
158
public function testServerSuperglobalIsNotOverriden ()
159
159
{
160
- $ baseValue = $ _SERVER ['argc ' ];
160
+ $ originalValue = $ _SERVER ['argc ' ];
161
161
162
162
$ dotenv = new DotEnv ();
163
- $ dotenv ->populate (array ('argc ' => 'whatever ' ));
163
+ $ dotenv ->populate (array ('argc ' => 'newValue ' ));
164
164
165
- $ this ->assertSame ($ baseValue , $ _SERVER ['argc ' ]);
165
+ $ this ->assertSame ($ originalValue , $ _SERVER ['argc ' ]);
166
166
}
167
167
168
168
public function testEnvVarIsNotOverriden ()
169
169
{
170
- putenv ('TEST_ENV_VAR=test_var ' );
170
+ putenv ('TEST_ENV_VAR=original_value ' );
171
171
172
172
$ dotenv = new DotEnv ();
173
- $ dotenv ->populate (array ('TEST_ENV_VAR ' => 'whatever ' ));
173
+ $ dotenv ->populate (array ('TEST_ENV_VAR ' => 'new_value ' ));
174
174
175
- $ this ->assertSame ('test_var ' , getenv ('TEST_ENV_VAR ' ));
175
+ $ this ->assertSame ('original_value ' , getenv ('TEST_ENV_VAR ' ));
176
176
}
177
177
}
You can’t perform that action at this time.
0 commit comments