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; } }