/** * Get total number of all emails * * @return int */ public function countAllMails() { return $this->mailer->countAllMails(); }
/** * @expectedException SimpleMailReceiver\Exceptions\SimpleMailReceiverException * @expectedExceptionMessage Error getting the number of mails */ public function testCountAllMailsException() { $this->mailer = new Mailserver(null, new \SimpleMailReceiver\Exceptions\ExceptionThrower()); $this->mailer->countAllMails(); }