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

Fix tests for PHP 5.4

parent 77417184
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,9 @@ class UserPassOrgBaseTest extends \PHPUnit_Framework_TestCase ...@@ -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)) ->setConstructorArgs(array(array('AuthId' => 'my-org'), &$config))
->setMethods(array()) ->setMethods(array())
->getMockForAbstractClass(); ->getMockForAbstractClass();
......
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