/** * @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()); }
/** * @test */ public function it_sets_the_section() { $this->bodyPart->setSection('bar'); $this->assertEquals('bar', $this->bodyPart->getSection()); }