예제 #1
0
 public function testset_as_sent()
 {
     $emailMan = new EmailMan();
     //execute the method and test if it works and does not throws an exception.
     //test with delete true/default
     try {
         $emailMan->set_as_sent('*****@*****.**', true, null, null, 'send error');
         $this->assertTrue(true);
     } catch (Exception $e) {
         $this->fail();
     }
     //execute the method and test if it works and does not throws an exception.
     //test with delete false
     try {
         $emailMan->set_as_sent('*****@*****.**', false, null, null, 'send error');
         $this->assertTrue(true);
     } catch (Exception $e) {
         $this->fail();
     }
 }