Skip to content

Commit 57c2170

Browse files
committed
Fix test
1 parent c62e387 commit 57c2170

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

Tests/Security/CheckLdapCredentialsListenerTest.php

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -194,27 +194,25 @@ private function createListener()
194194
}
195195
}
196196

197-
if (interface_exists(AuthenticatorInterface::class)) {
198-
class TestAuthenticator implements AuthenticatorInterface
197+
class TestAuthenticator implements AuthenticatorInterface
198+
{
199+
public function supports(Request $request): ?bool
199200
{
200-
public function supports(Request $request): ?bool
201-
{
202-
}
201+
}
203202

204-
public function authenticate(Request $request): PassportInterface
205-
{
206-
}
203+
public function authenticate(Request $request): PassportInterface
204+
{
205+
}
207206

208-
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
209-
{
210-
}
207+
public function createAuthenticatedToken(PassportInterface $passport, string $firewallName): TokenInterface
208+
{
209+
}
211210

212-
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
213-
{
214-
}
211+
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
212+
{
213+
}
215214

216-
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
217-
{
218-
}
215+
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
216+
{
219217
}
220218
}

0 commit comments

Comments
 (0)