Release 2.12 (#4609)

This commit is contained in:
Kevin Papst
2024-02-07 23:47:25 +01:00
committed by GitHub
parent 7abe787778
commit 85a16a9363
394 changed files with 1189 additions and 6735 deletions

View File

@@ -41,7 +41,7 @@ class LdapDriverTest extends TestCase
return new TestLdapDriver(new LdapConfiguration($config), $ldap);
}
public function testBindSuccess()
public function testBindSuccess(): void
{
$zendLdap = $this->getMockBuilder(Ldap::class)->disableOriginalConstructor()->onlyMethods(['bind'])->getMock();
$zendLdap->expects($this->once())->method('bind')->willReturnSelf();
@@ -53,7 +53,7 @@ class LdapDriverTest extends TestCase
self::assertTrue($result);
}
public function testBindException()
public function testBindException(): void
{
$zendLdap = $this->getMockBuilder(Ldap::class)->disableOriginalConstructor()->onlyMethods(['bind'])->getMock();
$zendLdap->expects($this->once())->method('bind')->willThrowException(new LdapException());
@@ -65,7 +65,7 @@ class LdapDriverTest extends TestCase
self::assertFalse($result);
}
public function testSearchSuccess()
public function testSearchSuccess(): void
{
$zendLdap = $this->getMockBuilder(Ldap::class)->disableOriginalConstructor()->onlyMethods(['bind', 'searchEntries'])->getMock();
$zendLdap->expects($this->once())->method('bind');