From 348535a8c8b3e30ac6a4c68f10a2f1a2f6ac963c Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Mon, 5 Aug 2019 22:59:26 +0200
Subject: [PATCH] Fix TooManyArguments

---
 tests/lib/SimpleSAML/Utils/ConfigTest.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/lib/SimpleSAML/Utils/ConfigTest.php b/tests/lib/SimpleSAML/Utils/ConfigTest.php
index 41052cf02..2e5777fcf 100644
--- a/tests/lib/SimpleSAML/Utils/ConfigTest.php
+++ b/tests/lib/SimpleSAML/Utils/ConfigTest.php
@@ -2,6 +2,7 @@
 
 namespace SimpleSAML\Test\Utils;
 
+use InvalidArgumentException;
 use PHPUnit\Framework\TestCase;
 use SimpleSAML\Utils\Config;
 
@@ -73,8 +74,8 @@ class ConfigTest extends TestCase
         $invalidDir = __DIR__.'/e9826ad19cbc4f5bf20c0913ffcd2ce6';
         putenv('SIMPLESAMLPHP_CONFIG_DIR='.$invalidDir);
 
-        $this->expectException(
-            \InvalidArgumentException::class,
+        $this->expectException(InvalidArgumentException::class);
+        $this->expectExceptionMessage(
             'Config directory specified by environment variable SIMPLESAMLPHP_CONFIG_DIR is not a directory.  '.
             'Given: "'.$invalidDir.'"'
         );
-- 
GitLab