8000 [Ldap] Fix test · symfony/symfony@a91b5a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a91b5a1

Browse files
[Ldap] Fix test
1 parent 5cb4027 commit a91b5a1

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/Symfony/Component/Ldap/Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -206,25 +206,27 @@ private function createListener()
206206
}
207207
}
208208

209-
class TestAuthenticator implements AuthenticatorInterface
210-
{
211-
public function supports(Request $request): ?bool
209+
if (interface_exists(AuthenticatorInterface::class)) {
210+
class TestAuthenticator implements AuthenticatorInterface
212211
{
213-
}
212+
public function supports(Request $request): ?bool
213+
{
214+
}
214215

215-
public function authenticate(Request $request): PassportInterface
216-
{
217-
}
216+
public function authenticate(Request $request): PassportInterface
217+
{
218+
}
218219

219-
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
220-
{
221-
}
220+
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
221+
{
222+
}
222223

223-
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
224-
{
225-
}
224+
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
225+
{
226+
}
226227

227-
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
228-
{
228+
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
229+
{
230+
}
229231
}
230232
}

0 commit comments

Comments
 (0)
0