diff --git a/tests/Hyperwallet/Tests/Util/HyperwalletEncryptionTest.php b/tests/Hyperwallet/Tests/Util/HyperwalletEncryptionTest.php index 4c185537..d27fc9d6 100644 --- a/tests/Hyperwallet/Tests/Util/HyperwalletEncryptionTest.php +++ b/tests/Hyperwallet/Tests/Util/HyperwalletEncryptionTest.php @@ -1,5 +1,5 @@ decrypt($encryptedMessage); $this->fail('Exception expected'); } catch (\Exception $e) { - $this->assertEquals('Decryption error', $e->getMessage()); + $this->assertThat($e->getMessage(), $this->logicalOr( + $this->equalTo('Decryption error'), + $this->equalTo('Ciphertext representative out of range') + )); } }