Beispiel #1
0
 /**
  * (RFC 2616 / 3.7)
  *
  * @test
  */
 public function setCharsetUpdatesContentTypeHeaderAndLeavesAdditionalInformationIntact()
 {
     $message = new Message();
     $message->setHeader('Content-Type', 'text/plain; charSet=UTF-16; x-foo=bar');
     $message->setCharset('ISO-8859-1');
     $this->assertEquals('text/plain; charset=ISO-8859-1; x-foo=bar', $message->getHeader('Content-Type'));
 }