public function testWrongUniqueId() { $mail = new Storage\Pop3($this->_params); try { $mail->getNumberByUniqueId('this_is_an_invalid_id'); } catch (\Exception $e) { return; // test ok } $this->fail('no exception while getting number for invalid id'); }
public function testWrongUniqueId() { $mail = new Storage\Pop3($this->_params); $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\InvalidArgumentException'); $mail->getNumberByUniqueId('this_is_an_invalid_id'); }