diff --git a/src/Symfony/Component/Security/Http/Tests/Authenticator/FormLoginAuthenticatorTest.php b/src/Symfony/Component/Security/Http/Tests/Authenticator/FormLoginAuthenticatorTest.php index bf466e794a88e..8853f61b5704f 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authenticator/FormLoginAuthenticatorTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authenticator/FormLoginAuthenticatorTest.php @@ -13,6 +13,7 @@ use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\Security\Core\Exception\BadCredentialsException; use Symfony\Component\Security\Core\Security; @@ -165,7 +166,7 @@ private function setUpAuthenticator(array $options = []) private function createSession() { - return $this->createMock('Symfony\Component\HttpFoundation\Session\SessionInterface'); + return $this->createMock(SessionInterface::class); } } diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php index 7d74ca63b899e..0ddc86b878707 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php @@ -19,6 +19,7 @@ use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\Security\Http\Event\LogoutEvent; use Symfony\Component\Security\Http\Firewall\LogoutListener; +use Symfony\Component\Security\Http\Logout\LogoutHandlerInterface; use Symfony\Component\Security\Http\Logout\LogoutSuccessHandlerInterface; class LogoutListenerTest extends TestCase @@ -183,7 +184,7 @@ public function testLegacyLogoutHandlers() $response = new Response(); $logoutSuccessHandler->expects($this->any())->method('onLogoutSuccess')->willReturn($response); - $handler = $this->createMock('Symfony\Component\Security\Http\Logout\LogoutHandlerInterface'); + $handler = $this->createMock(LogoutHandlerInterface::class); $handler->expects($this->once())->method('logout')->with($request, $response, $token); $listener->addHandler($handler);