コード例 #1
0
 /**
  * @Then I want my original string again
  */
 public function iWantMyOriginalStringAgain()
 {
     $dynamicDecrypter = DynamicCryptoFactory::buildDynamicDecrypter($this->passPhrase);
     $decryptedString = $dynamicDecrypter->decrypt($this->encryptedString);
     PHPUnit_Framework_TestCase::assertEquals($decryptedString, $this->string);
     echo $decryptedString;
 }
コード例 #2
0
 public function testDynamicCryptoFactoryReturnADynamicDecrypterObject()
 {
     $dynamicDecrypter = DynamicCryptoFactory::buildDynamicDecrypter($this->passPhrase);
     $this->assertInstanceOf('DynamicCrypto\\DynamicDecrypter', $dynamicDecrypter);
 }
コード例 #3
0
 public static function setUpBeforeClass()
 {
     self::$encrypter = DynamicCryptoFactory::buildDynamicEncrypter(self::$passPhrase);
     self::$decrypter = DynamicCryptoFactory::buildDynamicDecrypter(self::$passPhrase);
 }