Skip to content
Snippets Groups Projects
Commit 7c6817d9 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix TooManyArguments

parent 348535a8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment