Code Duplication    Length = 11-11 lines in 2 locations

src/Tests/Authenticator/JwtTokenTest.php 2 locations

@@ 103-113 (lines=11) @@
100
     * @test
101
     * @expectedException \InvalidArgumentException
102
     */
103
    public function willFailWhenSignatureValidationIsUnsuccessful()
104
    {
105
        $validator = $this
106
            ->getMockBuilder(
107
                'KleijnWeb\JwtBundle\Authenticator\SignatureValidator\SignatureValidator'
108
            )
109
            ->getMockForAbstractClass();
110
111
        $token = new JwtToken(self::EXAMPLE_TOKEN);
112
        $validator->expects($this->once())->method('isValid')->willReturn(false);
113
        $token->validateSignature('foobar', $validator);
114
    }
115
116
@@ 120-130 (lines=11) @@
117
    /**
118
     * @test
119
     */
120
    public function willNitFailWhenSignatureValidationIsSuccessful()
121
    {
122
        $validator = $this
123
            ->getMockBuilder(
124
                'KleijnWeb\JwtBundle\Authenticator\SignatureValidator\SignatureValidator'
125
            )
126
            ->getMockForAbstractClass();
127
128
        $token = new JwtToken(self::EXAMPLE_TOKEN);
129
130
        $validator->expects($this->once())->method('isValid')->willReturn(true);
131
        $token->validateSignature('foobar', $validator);
132
    }
133