Example #1
0
 /**
  * @test
  * @dataProvider providerTestCrypto
  */
 public function testDecryptoSzr($string)
 {
     if (self::$testSzr) {
         $key = base64_encode(self::$cryptoSzr->getCryptoKey());
         $str = escapeshellarg(self::$cryptoSzr->encrypt($string));
         exec('python ' . __DIR__ . "/CryptoToolSzr.py decrypt {$str} {$key}", $result);
         $this->assertEquals($string, $result[0]);
     } else {
         $this->markTestSkipped();
     }
 }