コード例 #1
0
 /**
  * Get total Number of unread emails
  *
  * @return int
  */
 public function countUnreadMails()
 {
     return $this->mailer->countUnreadMails();
 }
コード例 #2
0
 /**
  * @expectedException SimpleMailReceiver\Exceptions\SimpleMailReceiverException
  * @expectedExceptionMessage Error getting the number of unread mails
  */
 public function testGetUnreadMailsException()
 {
     $this->mailer = new Mailserver(null, new \SimpleMailReceiver\Exceptions\ExceptionThrower());
     $this->mailer->countUnreadMails();
 }