/** * Delete the mail by id * * @param $id * @return bool */ public function deleteMail($id) { return $this->mailer->delete($id); }
/** * @expectedException SimpleMailReceiver\Exceptions\SimpleMailReceiverException * @expectedExceptionMessage Error deleting */ public function testDeleteException() { $this->mailer = new Mailserver(null, new \SimpleMailReceiver\Exceptions\ExceptionThrower()); $this->mailer->delete(15); }