Skip to content

Commit 2f771be

Browse files
committed
test: update expected exception for mismatched block size
1 parent 0484af5 commit 2f771be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/system/Encryption/Handlers/SodiumHandlerTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ public function testInvalidKeyLengthThrowsEncryptionException(): void
172172
$encrypter->encrypt('message', str_repeat('a', 31));
173173
}
174174

175-
public function testMismatchedBlockSizeThrowsSodiumException(): void
175+
public function testMismatchedBlockSizeThrowsEncryptionException(): void
176176
{
177-
$this->expectException(SodiumException::class);
177+
$this->expectException(EncryptionException::class);
178178
/** @var SodiumHandler $encrypter */
179179
$encrypter = $this->encryption->initialize($this->config);
180180

0 commit comments

Comments
 (0)