Skip to content

Commit d0a918f

Browse files
committed
Fix legacy PHPunit-behaviour
1 parent d3fe5d8 commit d0a918f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/SAML2/AssertionTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)