Skip to content

Commit 198afdd

Browse files
committed
Fix 2x deprecation warning by phpunit
1 parent f0eabe7 commit 198afdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/XML/SignedElementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function testVerifyingTamperedSignatureWithoutKeyFails(): void
149149
$this->assertEquals(C::SIG_RSA_SHA256, $sigAlg);
150150

151151
$this->expectException(RuntimeException::class);
152-
$this->expectDeprecationMessage('Failed to verify signature.');
152+
$this->expectExceptionMessage('Failed to verify signature.');
153153
$customSigned->verify();
154154
}
155155

@@ -171,7 +171,7 @@ public function testVerifyingTamperedSignatureWithKeyFails(): void
171171
$verifier = $factory->getAlgorithm($sigAlg, $certificate->getPublicKey());
172172

173173
$this->expectException(RuntimeException::class);
174-
$this->expectDeprecationMessage('Failed to verify signature.');
174+
$this->expectExceptionMessage('Failed to verify signature.');
175175
$customSigned->verify($verifier);
176176
}
177177

0 commit comments

Comments
 (0)