コード例 #1
0
 public function testDecryptWihoutPadding()
 {
     $this->mcrypt->setKey($this->key);
     $this->setExpectedException('Zend\Crypt\Symmetric\Exception\InvalidArgumentException',
                                 'You have to specify a padding method');
     $this->mcrypt->decrypt($this->plaintext);
 }
コード例 #2
0
ファイル: McryptTest.php プロジェクト: rajanlamic/IntTest
 public function testDecryptWithoutKey()
 {
     $this->setExpectedException('Zend\\Crypt\\Symmetric\\Exception\\InvalidArgumentException');
     $this->mcrypt->decrypt($this->plaintext);
 }