From 47f5fb0f8c67e826575d3c3905c378ed73d28ee3 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sat, 28 Jul 2018 12:30:51 +0200 Subject: [PATCH] Fix tests for PHP 5.4 --- tests/modules/core/lib/Auth/UserPassOrgBaseTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/modules/core/lib/Auth/UserPassOrgBaseTest.php b/tests/modules/core/lib/Auth/UserPassOrgBaseTest.php index cc4f546de..3ee9098b8 100644 --- a/tests/modules/core/lib/Auth/UserPassOrgBaseTest.php +++ b/tests/modules/core/lib/Auth/UserPassOrgBaseTest.php @@ -25,7 +25,9 @@ class UserPassOrgBaseTest extends \PHPUnit_Framework_TestCase ) ); - $mockUserPassOrgBase = $this->getMockBuilder(\SimpleSAML\Module\core\Auth\UserPassOrgBase::class) + // When PHP 5.4 support is dropped, replace with: + // $mockUserPassOrgBase = $this->getMockBuilder(\SimpleSAML\Module\core\Auth\UserPassOrgBase::class) + $mockUserPassOrgBase = $this->getMockBuilder(get_parent_class(new \SimpleSAML\Module\ldap\Auth\Source\LDAPMulti(array('AuthId' => 'my-org'), array()))) ->setConstructorArgs(array(array('AuthId' => 'my-org'), &$config)) ->setMethods(array()) ->getMockForAbstractClass(); -- GitLab