@@ -30,12 +30,6 @@ protected function setUp(): void
3030 $ this ->message = new Message ();
3131 }
3232
33- protected function tearDown (): void
34- {
35- $ this ->message = null ;
36- unset($ this ->message );
37- }
38-
3933 // We can only test the headers retrieved from $_SERVER
4034 // This test might fail under apache.
4135 public function testHeadersRetrievesHeaders ()
@@ -256,7 +250,6 @@ public function testPopulateHeadersWithoutContentType()
256250
257251 $ this ->assertNull ($ this ->message ->header ('content-type ' ));
258252 putenv ("CONTENT_TYPE= {$ originalEnv }" );
259- $ this ->message ->removeHeader ('accept-language ' );
260253
261254 $ _SERVER = $ original ; // restore so code coverage doesn't break
262255 }
@@ -290,7 +283,6 @@ public function testPopulateHeadersKeyNotExists()
290283 $ this ->message ->populateHeaders ();
291284
292285 $ this ->assertSame ('' , $ this ->message ->header ('accept-charset ' )->getValue ());
293- $ this ->message ->removeHeader ('accept-charset ' );
294286
295287 $ _SERVER = $ original ; // restore so code coverage doesn't break
296288 }
@@ -308,8 +300,6 @@ public function testPopulateHeaders()
308300
309301 $ this ->assertSame ('text/html; charset=utf-8 ' , $ this ->message ->header ('content-type ' )->getValue ());
310302 $ 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 ' );
313303
314304 $ _SERVER = $ original ; // restore so code coverage doesn't break
315305 }
0 commit comments