assertEquals(null, $oSimpleCrypt->Decrypt("dd", null)); } public function testDecryptWithEmptyValue() { $oSimpleCrypt = new \SimpleCrypt("Sodium"); $this->assertEquals('', $oSimpleCrypt->Decrypt("dd", "")); } public function testDecrypNonDecryptableValue() { $this->expectException(SodiumException::class); $oSimpleCrypt = new \SimpleCrypt("Sodium"); $this->assertEquals('', $oSimpleCrypt->Decrypt("dd", "gabuzomeu")); } }