|
13 | 13 |
|
14 | 14 | use PHPUnit\Framework\TestCase;
|
15 | 15 | use Symfony\Component\HttpFoundation\Request;
|
| 16 | +use Symfony\Component\HttpFoundation\Session\SessionInterface; |
16 | 17 | use Symfony\Component\HttpKernel\Event\RequestEvent;
|
17 | 18 | use Symfony\Component\HttpKernel\Event\ResponseEvent;
|
18 | 19 | use Symfony\Component\HttpKernel\HttpKernelInterface;
|
19 | 20 | use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
20 | 21 | use Symfony\Component\Security\Http\Firewall\RememberMeListener;
|
21 | 22 | use Symfony\Component\Security\Http\SecurityEvents;
|
| 23 | +use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategyInterface; |
22 | 24 | use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
|
23 | 25 |
|
24 | 26 | class RememberMeListenerTest extends TestCase
|
@@ -227,7 +229,7 @@ public function testSessionStrategy()
|
227 | 229 | ->willReturn($token)
|
228 | 230 | ;
|
229 | 231 |
|
230 |
| - $session = $this->getMockBuilder('\Symfony\Component\HttpFoundation\Session\SessionInterface')->getMock(); |
| 232 | + $session = $this->getMockBuilder(SessionInterface::class)->getMock(); |
231 | 233 | $session
|
232 | 234 | ->expects($this->once())
|
233 | 235 | ->method('isStarted')
|
@@ -277,7 +279,7 @@ public function testSessionIsMigratedByDefault()
|
277 | 279 | ->willReturn($token)
|
278 | 280 | ;
|
279 | 281 |
|
280 |
| - $session = $this->getMockBuilder('\Symfony\Component\HttpFoundation\Session\SessionInterface')->getMock(); |
| 282 | + $session = $this->getMockBuilder(SessionInterface::class)->getMock(); |
281 | 283 | $session
|
282 | 284 | ->expects($this->once())
|
283 | 285 | ->method('isStarted')
|
@@ -402,6 +404,6 @@ protected function getDispatcher()
|
402 | 404 |
|
403 | 405 | private function getSessionStrategy()
|
404 | 406 | {
|
405 |
| - return $this->getMockBuilder('\Symfony\Component\Security\Http\Session\SessionAuthenticationStrategyInterface')->getMock(); |
| 407 | + return $this->getMockBuilder(SessionAuthenticationStrategyInterface::class)->getMock(); |
406 | 408 | }
|
407 | 409 | }
|
0 commit comments