public function testRequestAfterClose() { $mail = new Storage\Pop3($this->_params); $mail->close(); try { $mail->getMessage(1); } catch (\Exception $e) { return; // test ok } $this->fail('no exception raised while requesting after closing connection'); }
public function testRequestAfterClose() { $mail = new Storage\Pop3($this->_params); $mail->close(); $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\InvalidArgumentException'); $mail->getMessage(1); }