コード例 #1
0
ファイル: Pop3Test.php プロジェクト: hjr3/zf2
 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');
 }
コード例 #2
0
ファイル: Pop3Test.php プロジェクト: haoyanfei/zf2
 public function testWrongUniqueId()
 {
     $mail = new Storage\Pop3($this->_params);
     $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\InvalidArgumentException');
     $mail->getNumberByUniqueId('this_is_an_invalid_id');
 }