diff --git a/tests/modules/saml/lib/IdP/SAML2Test.php b/tests/modules/saml/lib/IdP/SAML2Test.php
index bc4aa29798ec595e55f2456414db60570dbe04c3..206bcceb97ac55d6a25e2839a1b5e55e3bf32288 100644
--- a/tests/modules/saml/lib/IdP/SAML2Test.php
+++ b/tests/modules/saml/lib/IdP/SAML2Test.php
@@ -780,6 +780,6 @@ EOT;
 
         $this->expectException(InvalidArgumentException::class);
         $this->expectExceptionMessage('"contactType" is mandatory and must be one of');
-        $md = $this->idpMetadataHandlerHelper($config);
+        $this->idpMetadataHandlerHelper($config);
     }
 }