service = new AESCryptService($secret, $cipher); } public function testEncryptDecrypt(): void { $plaintext = 'Hello, world!'; $encrypted = $this->service->encrypt($plaintext); $decrypted = $this->service->decrypt($encrypted); $this->assertNotEquals($plaintext, $encrypted); $this->assertEquals($plaintext, $decrypted); } }