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