예제 #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;
 }
 public function testDynamicCryptoFactoryReturnADynamicDecrypterObject()
 {
     $dynamicDecrypter = DynamicCryptoFactory::buildDynamicDecrypter($this->passPhrase);
     $this->assertInstanceOf('DynamicCrypto\\DynamicDecrypter', $dynamicDecrypter);
 }
 public static function setUpBeforeClass()
 {
     self::$encrypter = DynamicCryptoFactory::buildDynamicEncrypter(self::$passPhrase);
     self::$decrypter = DynamicCryptoFactory::buildDynamicDecrypter(self::$passPhrase);
 }