File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1199,7 +1199,8 @@ public function testVerifySignedAssertionTooManyTransforms(): void
11991199
12001200 $ publicKey = CertificatesMock::getPublicKeySha256 ();
12011201
1202- $ this ->expectException (Exception::class, 'XMLSec: more than two transform-operations in ds:Reference. ' );
1202+ $ this ->expectException (Exception::class);
1203+ $ this ->expectExceptionMessage ('XMLSec: more than two transform-operations in ds:Reference. ' );
12031204 new Assertion ($ doc ->firstChild );
12041205 }
12051206
@@ -1214,8 +1215,8 @@ public function testVerifySignedAssertionProhibitedTransform(): void
12141215
12151216 $ publicKey = CertificatesMock::getPublicKeySha256 ();
12161217
1217- $ this ->expectException (
1218- Exception::class,
1218+ $ this ->expectException (Exception::class);
1219+ $ this -> expectExceptionMessage (
12191220 'XMLSec: Signatures in SAML messages SHOULD NOT contain transforms other than the enveloped signature '
12201221 . 'transform or the exclusive canonicalization transforms. ' ,
12211222 );
You can’t perform that action at this time.
0 commit comments