| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testEncryptAndDecrypt() |
||
| 11 | { |
||
| 12 | $adapter = new DefusePHPEncryptionAdapter(); |
||
| 13 | |||
| 14 | $cipher = $adapter->encrypt('Hello World', 'secretkey123'); |
||
| 15 | $this->assertNotEquals('Hello World', $cipher); |
||
| 16 | |||
| 17 | $plaintext = $adapter->decrypt($cipher, 'secretkey123'); |
||
| 18 | $this->assertSame('Hello World', $plaintext); |
||
| 19 | } |
||
| 29 |