@@ -639,14 +639,28 @@ public function testUnknownStatus() : void
639639 $ this ->response ->setStatus (483 );
640640 }
641641
642- public function testSetContents () : void
642+ public function testSetContentType () : void
643643 {
644644 self ::assertNull ($ this ->response ->getHeader ('content-type ' ));
645645 $ this ->response ->setContentType ('foo ' );
646646 self ::assertSame ('foo; charset=UTF-8 ' , $ this ->response ->getHeader ('content-type ' ));
647+ $ this ->response ->setContentType ('foo ' , '' );
648+ self ::assertSame ('foo ' , $ this ->response ->getHeader ('content-type ' ));
649+ $ this ->response ->setContentType ('foo ' , '0 ' );
650+ self ::assertSame ('foo ' , $ this ->response ->getHeader ('content-type ' ));
651+ $ this ->response ->setContentType ('foo ' , null );
652+ self ::assertSame ('foo ' , $ this ->response ->getHeader ('content-type ' ));
653+ }
654+
655+ public function testSetContentLanguage () : void
656+ {
647657 self ::assertNull ($ this ->response ->getHeader ('content-language ' ));
648658 $ this ->response ->setContentLanguage ('de ' );
649659 self ::assertSame ('de ' , $ this ->response ->getHeader ('content-language ' ));
660+ }
661+
662+ public function testSetContentEncoding () : void
663+ {
650664 self ::assertNull ($ this ->response ->getHeader ('content-encoding ' ));
651665 $ this ->response ->setContentEncoding ('gzip ' );
652666 self ::assertSame ('gzip ' , $ this ->response ->getHeader ('content-encoding ' ));
0 commit comments