Example #1
0
 public function testReadAfterClose()
 {
     $protocol = new 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');
 }
Example #2
0
 public function testReadAfterClose()
 {
     $protocol = new Protocol\Pop3($this->_params['host']);
     $protocol->logout();
     $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\InvalidArgumentException');
     $protocol->readResponse();
 }