@@ -26,9 +26,9 @@ public function testHandleWithValidValues()
2626
2727 $ request = new Request ([], [], [], [], [], []);
2828
29- $ token = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\Token\TokenInterface ' )->getMock ();
29+ $ token = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \Token \TokenInterface::class )->getMock ();
3030
31- $ tokenStorage = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )->getMock ();
31+ $ tokenStorage = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface::class )->getMock ();
3232 $ tokenStorage
3333 ->expects ($ this ->any ())
3434 ->method ('getToken ' )
@@ -40,15 +40,15 @@ public function testHandleWithValidValues()
4040 ->with ($ this ->equalTo ($ token ))
4141 ;
4242
43- $ authenticationManager = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface ' )->getMock ();
43+ $ authenticationManager = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \AuthenticationManagerInterface::class )->getMock ();
4444 $ authenticationManager
4545 ->expects ($ this ->once ())
4646 ->method ('authenticate ' )
47- ->with ($ this ->isInstanceOf (' Symfony\Component\Security\Core\Authentication\Token\ PreAuthenticatedToken' ))
47+ ->with ($ this ->isInstanceOf (PreAuthenticatedToken::class ))
4848 ->willReturn ($ token )
4949 ;
5050
51- $ listener = $ this ->getMockForAbstractClass (' Symfony\Component\Security\Http\Firewall\AbstractPreAuthenticatedListener ' , [
51+ $ listener = $ this ->getMockForAbstractClass (\ Symfony \Component \Security \Http \Firewall \AbstractPreAuthenticatedListener::class , [
5252 $ tokenStorage ,
5353 $ authenticationManager ,
5454 'TheProviderKey ' ,
@@ -74,7 +74,7 @@ public function testHandleWhenAuthenticationFails()
7474
7575 $ request = new Request ([], [], [], [], [], []);
7676
77- $ tokenStorage = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )->getMock ();
77+ $ tokenStorage = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface::class )->getMock ();
7878 $ tokenStorage
7979 ->expects ($ this ->any ())
8080 ->method ('getToken ' )
@@ -86,15 +86,15 @@ public function testHandleWhenAuthenticationFails()
8686 ;
8787
8888 $ exception = new AuthenticationException ('Authentication failed. ' );
89- $ authenticationManager = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface ' )->getMock ();
89+ $ authenticationManager = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \AuthenticationManagerInterface::class )->getMock ();
9090 $ authenticationManager
9191 ->expects ($ this ->once ())
9292 ->method ('authenticate ' )
93- ->with ($ this ->isInstanceOf (' Symfony\Component\Security\Core\Authentication\Token\ PreAuthenticatedToken' ))
93+ ->with ($ this ->isInstanceOf (PreAuthenticatedToken::class ))
9494 ->willThrowException ($ exception )
9595 ;
9696
97- $ listener = $ this ->getMockForAbstractClass (' Symfony\Component\Security\Http\Firewall\AbstractPreAuthenticatedListener ' , [
97+ $ listener = $ this ->getMockForAbstractClass (\ Symfony \Component \Security \Http \Firewall \AbstractPreAuthenticatedListener::class , [
9898 $ tokenStorage ,
9999 $ authenticationManager ,
100100 'TheProviderKey ' ,
@@ -122,7 +122,7 @@ public function testHandleWhenAuthenticationFailsWithDifferentToken()
122122
123123 $ request = new Request ([], [], [], [], [], []);
124124
125- $ tokenStorage = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )->getMock ();
125+ $ tokenStorage = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface::class )->getMock ();
126126 $ tokenStorage
127127 ->expects ($ this ->any ())
128128 ->method ('getToken ' )
@@ -134,15 +134,15 @@ public function testHandleWhenAuthenticationFailsWithDifferentToken()
134134 ;
135135
136136 $ exception = new AuthenticationException ('Authentication failed. ' );
137- $ authenticationManager = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface ' )->getMock ();
137+ $ authenticationManager = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \AuthenticationManagerInterface::class )->getMock ();
138138 $ authenticationManager
139139 ->expects ($ this ->once ())
140140 ->method ('authenticate ' )
141- ->with ($ this ->isInstanceOf (' Symfony\Component\Security\Core\Authentication\Token\ PreAuthenticatedToken' ))
141+ ->with ($ this ->isInstanceOf (PreAuthenticatedToken::class ))
142142 ->willThrowException ($ exception )
143143 ;
144144
145- $ listener = $ this ->getMockForAbstractClass (' Symfony\Component\Security\Http\Firewall\AbstractPreAuthenticatedListener ' , [
145+ $ listener = $ this ->getMockForAbstractClass (\ Symfony \Component \Security \Http \Firewall \AbstractPreAuthenticatedListener::class , [
146146 $ tokenStorage ,
147147 $ authenticationManager ,
148148 'TheProviderKey ' ,
@@ -170,20 +170,20 @@ public function testHandleWithASimilarAuthenticatedToken()
170170
171171 $ token = new PreAuthenticatedToken ('TheUser ' , 'TheCredentials ' , 'TheProviderKey ' , ['ROLE_FOO ' ]);
172172
173- $ tokenStorage = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )->getMock ();
173+ $ tokenStorage = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface::class )->getMock ();
174174 $ tokenStorage
175175 ->expects ($ this ->any ())
176176 ->method ('getToken ' )
177177 ->willReturn ($ token )
178178 ;
179179
180- $ authenticationManager = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface ' )->getMock ();
180+ $ authenticationManager = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \AuthenticationManagerInterface::class )->getMock ();
181181 $ authenticationManager
182182 ->expects ($ this ->never ())
183183 ->method ('authenticate ' )
184184 ;
185185
186- $ listener = $ this ->getMockForAbstractClass (' Symfony\Component\Security\Http\Firewall\AbstractPreAuthenticatedListener ' , [
186+ $ listener = $ this ->getMockForAbstractClass (\ Symfony \Component \Security \Http \Firewall \AbstractPreAuthenticatedListener::class , [
187187 $ tokenStorage ,
188188 $ authenticationManager ,
189189 'TheProviderKey ' ,
@@ -211,7 +211,7 @@ public function testHandleWithAnInvalidSimilarToken()
211211
212212 $ token = new PreAuthenticatedToken ('AnotherUser ' , 'TheCredentials ' , 'TheProviderKey ' , ['ROLE_FOO ' ]);
213213
214- $ tokenStorage = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface ' )->getMock ();
214+ $ tokenStorage = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface::class )->getMock ();
215215 $ tokenStorage
216216 ->expects ($ this ->any ())
217217 ->method ('getToken ' )
@@ -224,15 +224,15 @@ public function testHandleWithAnInvalidSimilarToken()
224224 ;
225225
226226 $ exception = new AuthenticationException ('Authentication failed. ' );
227- $ authenticationManager = $ this ->getMockBuilder (' Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface ' )->getMock ();
227+ $ authenticationManager = $ this ->getMockBuilder (\ Symfony \Component \Security \Core \Authentication \AuthenticationManagerInterface::class )->getMock ();
228228 $ authenticationManager
229229 ->expects ($ this ->once ())
230230 ->method ('authenticate ' )
231- ->with ($ this ->isInstanceOf (' Symfony\Component\Security\Core\Authentication\Token\ PreAuthenticatedToken' ))
231+ ->with ($ this ->isInstanceOf (PreAuthenticatedToken::class ))
232232 ->willThrowException ($ exception )
233233 ;
234234
235- $ listener = $ this ->getMockForAbstractClass (' Symfony\Component\Security\Http\Firewall\AbstractPreAuthenticatedListener ' , [
235+ $ listener = $ this ->getMockForAbstractClass (\ Symfony \Component \Security \Http \Firewall \AbstractPreAuthenticatedListener::class , [
236236 $ tokenStorage ,
237237 $ authenticationManager ,
238238 'TheProviderKey ' ,
0 commit comments