コード例 #1
0
ファイル: AbstractZendTest.php プロジェクト: chippyash/crypt
 public function testYouCanDecryptUsingZendAbstractMethod()
 {
     $this->symmetricAdapter->expects($this->once())->method('decrypt')->will($this->returnValue('foo'));
     $this->symmetricAdapter->expects($this->once())->method('getAlgorithm')->will($this->returnValue('foo'));
     $this->assertEquals('foo', $this->sut->decrypt('84c25d9d9211932f7a69c3e84a090bade57b8c35dd6f8e1a66801dd889632ee8Zm9v', 'fudge'));
 }