Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jul 25, 2024
1 parent a6d48b7 commit 6bd73de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/SAML2/XML/md/RoleDescriptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use PHPUnit\Framework\TestCase;
use SimpleSAML\SAML2\Compat\AbstractContainer;
use SimpleSAML\SAML2\Compat\ContainerSingleton;
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
use SimpleSAML\SAML2\XML\md\AbstractMdElement;
use SimpleSAML\SAML2\XML\md\AbstractMetadataDocument;
use SimpleSAML\SAML2\XML\md\AbstractRoleDescriptor;
Expand Down Expand Up @@ -297,7 +298,7 @@ public function testUnmarshallingWithInvalidErrorURL(): void
$xmlRepresentation = clone self::$xmlRepresentation;
$xmlRepresentation->documentElement->setAttribute('errorURL', 'not a URL');

$this->expectException(SchemaViolationException::class);
$this->expectException(ProtocolViolationException::class);

UnknownRoleDescriptor::fromXML($xmlRepresentation->documentElement);
}
Expand Down

0 comments on commit 6bd73de

Please sign in to comment.