1111use SimpleSAML \SAML2 \Signature \Validator ;
1212use SimpleSAML \SAML2 \XML \saml \Assertion ;
1313use SimpleSAML \XML \DOMDocumentFactory ;
14- use SimpleSAML \XMLSecurity \Exception \ReferenceValidationFailedException ;
14+ use SimpleSAML \XMLSecurity \Exception \SignatureValidationFailedException ;
1515use SimpleSAML \XMLSecurity \TestUtils \PEMCertificatesMock ;
1616
1717/**
@@ -43,8 +43,8 @@ public static function setUpBeforeClass(): void
4343 */
4444 public function testThatASignatureReferencingAnEmbeddedAssertionIsNotValid (): void
4545 {
46- $ this ->expectException (ReferenceValidationFailedException ::class);
47- $ this ->expectExceptionMessage ('Reference does not point to given element . ' );
46+ $ this ->expectException (SignatureVerificationFailedException ::class);
47+ $ this ->expectExceptionMessage ('Failed to verify signature . ' );
4848
4949 $ assertion = $ this ->getSignedAssertionWithEmbeddedAssertionReferencedInSignature ();
5050 self ::$ signatureValidator ->hasValidSignature ($ assertion , self ::$ identityProviderConfiguration );
@@ -55,8 +55,8 @@ public function testThatASignatureReferencingAnEmbeddedAssertionIsNotValid(): vo
5555 */
5656 public function testThatASignatureReferencingAnotherAssertionIsNotValid (): void
5757 {
58- $ this ->expectException (ReferenceValidationFailedException ::class);
59- $ this ->expectExceptionMessage ('Reference does not point to given element . ' );
58+ $ this ->expectException (SignatureVerificationFailedException ::class);
59+ $ this ->expectExceptionMessage ('Failed to verify signature . ' );
6060
6161 $ assertion = $ this ->getSignedAssertionWithSignatureThatReferencesAnotherAssertion ();
6262 self ::$ signatureValidator ->hasValidSignature ($ assertion , self ::$ identityProviderConfiguration );
0 commit comments