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'); }
public function testClose() { $mail = new Zend_Mail_Imap($this->_params); try { $mail->close(); } catch (Exception $e) { $this->fail('exception raised while closing imap connection'); } }