Exemple #1
0
 /**
  * Get the message data.
  * @return array
  */
 private function retrieveMessage()
 {
     if (null === $this->message) {
         $this->message = $this->mailCatcher->message($this->id);
     }
     return $this->message;
 }
Exemple #2
0
 function it_should_return_its_attachments()
 {
     $this->mailCatcher->message('id')->willReturn(['attachments' => [1, 2]]);
     $this->mailCatcher->messageAttachment('id', 1)->willReturn('attachment 1');
     $this->mailCatcher->messageAttachment('id', 2)->willReturn('attachment 2');
     $this->attachments()->shouldReturn(['attachment 1', 'attachment 2']);
 }