Esempio n. 1
0
 public function testSetCharset()
 {
     $charset = 'koi8-r';
     $this->assertEquals($this->message, $this->message->setCharset($charset));
     $this->headers->set('Content-type', 'text/plain; charset="' . $charset . '"');
     $this->assertEquals($charset, $this->message->getCharset());
     $this->assertEquals($this->headers->toString(), $this->message->getHeaders());
 }