/**
  * @param ImapBodyPart $section
  * @param int $messageNo
  * @return string
  */
 protected function getEmbeddedImage(ImapBodyPart $section, $messageNo)
 {
     return $this->decoder->decodeBody($this->imap->fetchBody($messageNo, $section->getSection()), $section->getEncoding());
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function it_sets_the_encoding_type()
 {
     $this->bodyPart->setEncoding('bar');
     $this->assertEquals('bar', $this->bodyPart->getEncoding());
 }