|  | @@ 145-153 (lines=9) @@ | 
                                                            
                                    | 142 |  |     /** | 
                                                            
                                    | 143 |  |      * @test | 
                                                            
                                    | 144 |  |      */ | 
                                                            
                                    | 145 |  |     public function authenticateTokenWillThrowExceptionWhenTokenUnsupportedType() | 
                                                            
                                    | 146 |  |     { | 
                                                            
                                    | 147 |  |         $jwtAuthenticationProvider = new JwtAuthenticationProvider($this->standardUserProviderMock, $this->keys); | 
                                                            
                                    | 148 |  |         $anonToken                 = new PreAuthenticatedToken('foo', '', 'myprovider'); | 
                                                            
                                    | 149 |  |  | 
                                                            
                                    | 150 |  |         $this->expectException(\LogicException::class); | 
                                                            
                                    | 151 |  |  | 
                                                            
                                    | 152 |  |         $jwtAuthenticationProvider->authenticate($anonToken); | 
                                                            
                                    | 153 |  |     } | 
                                                            
                                    | 154 |  |  | 
                                                            
                                    | 155 |  |     /** | 
                                                            
                                    | 156 |  |      * @test | 
                                                                                
                                |  | @@ 196-204 (lines=9) @@ | 
                                                            
                                    | 193 |  |      * @test | 
                                                            
                                    | 194 |  |      * @expectedException \UnexpectedValueException | 
                                                            
                                    | 195 |  |      */ | 
                                                            
                                    | 196 |  |     public function authenticateTokenWillFailWhenTokenStringInvalid() | 
                                                            
                                    | 197 |  |     { | 
                                                            
                                    | 198 |  |         $jwtAuthenticationProvider = new JwtAuthenticationProvider($this->standardUserProviderMock, $this->keys); | 
                                                            
                                    | 199 |  |         $authToken                 = new JwtAuthenticationToken([], 'invalid'); | 
                                                            
                                    | 200 |  |  | 
                                                            
                                    | 201 |  |         $this->expectException(BadCredentialsException::class); | 
                                                            
                                    | 202 |  |  | 
                                                            
                                    | 203 |  |         $jwtAuthenticationProvider->authenticate($authToken); | 
                                                            
                                    | 204 |  |     } | 
                                                            
                                    | 205 |  |  | 
                                                            
                                    | 206 |  |     /** | 
                                                            
                                    | 207 |  |      * @test |