From 7c6817d995f84910f2eb90d0e27142a4ec951733 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Mon, 5 Aug 2019 23:04:27 +0200
Subject: [PATCH] Fix TooManyArguments

---
 tests/modules/core/lib/Auth/Process/PHPTest.php  | 10 ++++------
 tests/modules/core/lib/Auth/UserPassBaseTest.php |  3 ++-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/tests/modules/core/lib/Auth/Process/PHPTest.php b/tests/modules/core/lib/Auth/Process/PHPTest.php
index a7148af7d..cb7488dbe 100644
--- a/tests/modules/core/lib/Auth/Process/PHPTest.php
+++ b/tests/modules/core/lib/Auth/Process/PHPTest.php
@@ -32,8 +32,8 @@ class PHPTest extends TestCase
     public function testInvalidConfiguration()
     {
         $config = [];
-        $this->expectException(
-            \SimpleSAML\Error\Exception::class,
+        $this->expectException(\SimpleSAML\Error\Exception::class);
+        $this->expectExceptionMessage(
             "core:PHP: missing mandatory configuration option 'code'."
         );
         new \SimpleSAML\Module\core\Auth\Process\PHP($config, null);
@@ -113,10 +113,8 @@ class PHPTest extends TestCase
             ]
         ];
 
-        $this->expectException(
-            \Exception::class,
-            "Missing uid attribute."
-        );
+        $this->expectException(Exception::class);
+        $this->expectExceptionMessage("Missing uid attribute.");
         $this->processFilter($config, $request);
     }
 
diff --git a/tests/modules/core/lib/Auth/UserPassBaseTest.php b/tests/modules/core/lib/Auth/UserPassBaseTest.php
index 51007e89c..3fc706060 100644
--- a/tests/modules/core/lib/Auth/UserPassBaseTest.php
+++ b/tests/modules/core/lib/Auth/UserPassBaseTest.php
@@ -60,7 +60,8 @@ class UserPassBaseTest extends \PHPUnit\Framework\TestCase
      */
     public function testAuthenticateECPMissingPassword()
     {
-        $this->expectException(\SimpleSAML\Error\Error::class, 'WRONGUSERPASS');
+        $this->expectException(\SimpleSAML\Error\Error::class);
+        $this->expectExceptionMessage('WRONGUSERPASS');
 
         $state = [
             'saml:Binding' => \SAML2\Constants::BINDING_PAOS,
-- 
GitLab