@@ -30,12 +30,6 @@ protected function setUp(): void
30
30
$ this ->message = new Message ();
31
31
}
32
32
33
- protected function tearDown (): void
34
- {
35
- $ this ->message = null ;
36
- unset($ this ->message );
37
- }
38
-
39
33
// We can only test the headers retrieved from $_SERVER
40
34
// This test might fail under apache.
41
35
public function testHeadersRetrievesHeaders ()
@@ -256,7 +250,6 @@ public function testPopulateHeadersWithoutContentType()
256
250
257
251
$ this ->assertNull ($ this ->message ->header ('content-type ' ));
258
252
putenv ("CONTENT_TYPE= {$ originalEnv }" );
259
- $ this ->message ->removeHeader ('accept-language ' );
260
253
261
254
$ _SERVER = $ original ; // restore so code coverage doesn't break
262
255
}
@@ -290,7 +283,6 @@ public function testPopulateHeadersKeyNotExists()
290
283
$ this ->message ->populateHeaders ();
291
284
292
285
$ this ->assertSame ('' , $ this ->message ->header ('accept-charset ' )->getValue ());
293
- $ this ->message ->removeHeader ('accept-charset ' );
294
286
295
287
$ _SERVER = $ original ; // restore so code coverage doesn't break
296
288
}
@@ -308,8 +300,6 @@ public function testPopulateHeaders()
308
300
309
301
$ this ->assertSame ('text/html; charset=utf-8 ' , $ this ->message ->header ('content-type ' )->getValue ());
310
302
$ this ->assertSame ('en-us,en;q=0.50 ' , $ this ->message ->header ('accept-language ' )->getValue ());
311
- $ this ->message ->removeHeader ('content-type ' );
312
- $ this ->message ->removeHeader ('accept-language ' );
313
303
314
304
$ _SERVER = $ original ; // restore so code coverage doesn't break
315
305
}
0 commit comments