|  | @@ 136-146 (lines=11) @@ | 
                                                            
                                    | 133 |  |      * @test | 
                                                            
                                    | 134 |  |      * @expectedException \UnexpectedValueException | 
                                                            
                                    | 135 |  |      */ | 
                                                            
                                    | 136 |  |     public function authenticateTokenWillFailIfCredentialsAreNotJwtToken() | 
                                                            
                                    | 137 |  |     { | 
                                                            
                                    | 138 |  |         $authenticator = new Authenticator($this->keys); | 
                                                            
                                    | 139 |  |         $anonToken     = new PreAuthenticatedToken('foo', ['sub' => 'john'], 'myprovider'); | 
                                                            
                                    | 140 |  |  | 
                                                            
                                    | 141 |  |         $userProvider = $this->getMockBuilder( | 
                                                            
                                    | 142 |  |             'Symfony\Component\Security\Core\User\UserProviderInterface' | 
                                                            
                                    | 143 |  |         )->getMockForAbstractClass(); | 
                                                            
                                    | 144 |  |  | 
                                                            
                                    | 145 |  |         $authenticator->authenticateToken($anonToken, $userProvider, 'myprovider'); | 
                                                            
                                    | 146 |  |     } | 
                                                            
                                    | 147 |  |  | 
                                                            
                                    | 148 |  |     /** | 
                                                            
                                    | 149 |  |      * @test | 
                                                                                
                                |  | @@ 151-158 (lines=8) @@ | 
                                                            
                                    | 148 |  |     /** | 
                                                            
                                    | 149 |  |      * @test | 
                                                            
                                    | 150 |  |      */ | 
                                                            
                                    | 151 |  |     public function supportsPreAuthToken() | 
                                                            
                                    | 152 |  |     { | 
                                                            
                                    | 153 |  |         $authenticator = new Authenticator($this->keys); | 
                                                            
                                    | 154 |  |  | 
                                                            
                                    | 155 |  |         $securityToken = new PreAuthenticatedToken('foo', 'bar', 'myprovider'); | 
                                                            
                                    | 156 |  |         $actual        = $authenticator->supportsToken($securityToken, 'myprovider'); | 
                                                            
                                    | 157 |  |         $this->assertTrue($actual); | 
                                                            
                                    | 158 |  |     } | 
                                                            
                                    | 159 |  |  | 
                                                            
                                    | 160 |  |     /** | 
                                                            
                                    | 161 |  |      * @test |