File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -240,17 +240,18 @@ public function testSetHeaderWithExistingArrayValuesAppendNullValue()
240
240
241
241
public function testPopulateHeadersWithoutContentType ()
242
242
{
243
- // fail path, if the CONTENT_TYPE doesn't exist
244
243
$ original = $ _SERVER ;
245
- $ _SERVER = ['HTTP_ACCEPT_LANGUAGE ' => 'en-us,en;q=0.50 ' ];
246
244
$ originalEnv = getenv ('CONTENT_TYPE ' );
245
+
246
+ // fail path, if the CONTENT_TYPE doesn't exist
247
+ $ _SERVER = ['HTTP_ACCEPT_LANGUAGE ' => 'en-us,en;q=0.50 ' ];
247
248
putenv ('CONTENT_TYPE ' );
248
249
249
250
$ this ->message ->populateHeaders ();
250
251
251
252
$ this ->assertNull ($ this ->message ->header ('content-type ' ));
252
- putenv ("CONTENT_TYPE= {$ originalEnv }" );
253
253
254
+ putenv ("CONTENT_TYPE= {$ originalEnv }" );
254
255
$ _SERVER = $ original ; // restore so code coverage doesn't break
255
256
}
256
257
You can’t perform that action at this time.
0 commit comments