Beispiel #1
0
 /**
  * Get final “plain” content.
  *
  * @return  string
  */
 protected function _getContent()
 {
     return Encoder\Base64::encode($this->getStream()->readAll());
 }
Beispiel #2
0
 public function case_encode_rfc2047_sections_4_and_5()
 {
     $this->given($decoded = 'foobar', $encoded = '=?utf-8?B?Zm9vYmFy?=')->when($result = SUT::encode($decoded, true))->then->string($result)->isEqualTo($encoded);
 }