Code Duplication    Length = 9-9 lines in 2 locations

tests/unit/Firewall/JwtAuthenticationProviderTest.php 2 locations

@@ 144-152 (lines=9) @@
141
    /**
142
     * @test
143
     */
144
    public function authenticateTokenWillThrowExceptionWhenTokenUnsupportedType()
145
    {
146
        $jwtAuthenticationProvider = new JwtAuthenticationProvider($this->standardUserProviderMock, $this->keys);
147
        $anonToken                 = new PreAuthenticatedToken('foo', '', 'myprovider');
148
149
        $this->expectException(\LogicException::class);
150
151
        $jwtAuthenticationProvider->authenticate($anonToken);
152
    }
153
154
    /**
155
     * @test
@@ 177-185 (lines=9) @@
174
     * @test
175
     * @expectedException \UnexpectedValueException
176
     */
177
    public function authenticateTokenWillFailWhenTokenStringInvalid()
178
    {
179
        $jwtAuthenticationProvider = new JwtAuthenticationProvider($this->standardUserProviderMock, $this->keys);
180
        $authToken                 = new JwtAuthenticationToken([], 'invalid');
181
182
        $this->expectException(BadCredentialsException::class);
183
184
        $jwtAuthenticationProvider->authenticate($authToken);
185
    }
186
187
    /**
188
     * @test