From e3efc1cf51291f51994167a4da3839e3b34fbe30 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 18 Jan 2020 17:31:10 -0600 Subject: [PATCH] Tests/RSA: add additional assert for MSBLOBs --- tests/Unit/Crypt/RSA/LoadKeyTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Unit/Crypt/RSA/LoadKeyTest.php b/tests/Unit/Crypt/RSA/LoadKeyTest.php index ac3efd78..4c3c3449 100644 --- a/tests/Unit/Crypt/RSA/LoadKeyTest.php +++ b/tests/Unit/Crypt/RSA/LoadKeyTest.php @@ -440,6 +440,7 @@ Private-MAC: 35134b7434bf828b21404099861d455e660e8740'; $plaintext = 'zzz'; $privKey = PublicKeyLoader::load($key); + $this->assertSame($key, $privKey->toString('MSBLOB')); $this->assertInstanceOf(PrivateKey::class, $privKey); $this->assertSame($privKey->getLoadedFormat(), 'MSBLOB'); $this->assertGreaterThanOrEqual(1, strlen("$privKey"));