From a5ea684702b3a5e3c1ec255f727b7313a913bb4e Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sat, 16 Nov 2024 13:11:55 +0100 Subject: [PATCH] Add use-statement --- tests/XML/SignedElementTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/XML/SignedElementTest.php b/tests/XML/SignedElementTest.php index 278b996a..8c1456d5 100644 --- a/tests/XML/SignedElementTest.php +++ b/tests/XML/SignedElementTest.php @@ -12,6 +12,7 @@ use SimpleSAML\XMLSecurity\Constants as C; use SimpleSAML\XMLSecurity\CryptoEncoding\PEM; use SimpleSAML\XMLSecurity\Exception\RuntimeException; +use SimpleSAML\XMLSecurity\Exception\SignatureVerificationFailedException; use SimpleSAML\XMLSecurity\Key\PublicKey; use SimpleSAML\XMLSecurity\Key\X509Certificate; use SimpleSAML\XMLSecurity\Test\XML\CustomSignable; @@ -138,7 +139,7 @@ public function testSuccessfulVerifyingWithWrongKeyFirstRightOneSecond(): void try { $verified = $customSigned->verify($verifier); break 1; - } catch (\SimpleSAML\XMLSecurity\Exception\SignatureVerificationFailedException $e) { + } catch (SignatureVerificationFailedException $e) { continue; } }