コード例 #1
0
ファイル: Mail.php プロジェクト: rezouce/mailcatcher
 public function html()
 {
     if (!$this->hasHtml()) {
         throw new MailCatcherException('This message has no HTML body.');
     }
     return $this->mailCatcher->messageHtml($this->id);
 }
コード例 #2
0
ファイル: MailSpec.php プロジェクト: rezouce/mailcatcher
 function it_should_return_its_html_body()
 {
     $this->mailCatcher->message('id')->willReturn(['formats' => ['html']]);
     $this->mailCatcher->messageHtml('id')->willReturn('body');
     $this->html()->shouldReturn('body');
 }