Esempio n. 1
0
 /**
  * Close resource for mail lib. If you need to control, when the resource
  * is closed. Otherwise the destructor would call this.
  *
  * @return null
  */
 public function close()
 {
     $this->_protocol->logout();
 }
Esempio n. 2
0
 public function testReadAfterClose()
 {
     $protocol = new Zend_Mail_Protocol_Pop3($this->_params['host']);
     $protocol->logout();
     try {
         $protocol->readResponse();
     } catch (Exception $e) {
         return;
         // test ok
     }
     $this->fail('no exception while reading from closed socket');
 }