Example #1
0
 public function testTooLateCount()
 {
     $mail = new Zend_Mail_Imap($this->_params);
     $mail->close();
     // after closing we can't count messages
     try {
         $mail->countMessages();
     } catch (Exception $e) {
         return;
         // test ok
     }
     $this->fail('no exception raised while counting messages on closed connection');
 }
Example #2
0
 public function testClose()
 {
     $mail = new Zend_Mail_Imap($this->_params);
     try {
         $mail->close();
     } catch (Exception $e) {
         $this->fail('exception raised while closing imap connection');
     }
 }