Code Duplication    Length = 11-11 lines in 2 locations

src/Tests/Authenticator/JwtTokenTest.php 2 locations

@@ 92-102 (lines=11) @@
89
     * @test
90
     * @expectedException \InvalidArgumentException
91
     */
92
    public function willFailWhenSignatureValidationIsUnsuccessful()
93
    {
94
        $validator = $this
95
            ->getMockBuilder(
96
                'KleijnWeb\JwtBundle\Authenticator\SignatureValidator\SignatureValidator'
97
            )
98
            ->getMockForAbstractClass();
99
        $token = new JwtToken(self::EXAMPLE_TOKEN);
100
        $validator->expects($this->once())->method('isValid')->willReturn(false);
101
        $token->validateSignature('foobar', $validator);
102
    }
103
104
105
    /**
@@ 108-118 (lines=11) @@
105
    /**
106
     * @test
107
     */
108
    public function willNitFailWhenSignatureValidationIsSuccessful()
109
    {
110
        $validator = $this
111
            ->getMockBuilder(
112
                'KleijnWeb\JwtBundle\Authenticator\SignatureValidator\SignatureValidator'
113
            )
114
            ->getMockForAbstractClass();
115
        $token = new JwtToken(self::EXAMPLE_TOKEN);
116
        $validator->expects($this->once())->method('isValid')->willReturn(true);
117
        $token->validateSignature('foobar', $validator);
118
    }
119
120
    /**
121
     * @test