Code Duplication    Length = 21-21 lines in 2 locations

src/Tests/Authenticator/DecoderTest.php 1 location

@@ 44-64 (lines=21) @@
41
     * @see          http://jwt.io/
42
     * @return array
43
     */
44
    public static function testSetProvider()
45
    {
46
        return [
47
            [
48
                [
49
                    'alg' => 'HS256',
50
                    'typ' => 'JWT',
51
                ],
52
                'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9'
53
            ],
54
            [
55
                [
56
                    'sub'   => '1234567890',
57
                    'name'  => 'John Doe',
58
                    'admin' => true,
59
                ]
60
                ,
61
                'eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9'
62
            ]
63
        ];
64
    }
65
}
66

src/Tests/Authenticator/EncoderTest.php 1 location

@@ 34-54 (lines=21) @@
31
     * @see          http://jwt.io/
32
     * @return array
33
     */
34
    public static function testSetProvider()
35
    {
36
        return [
37
            [
38
                [
39
                    'alg' => 'HS256',
40
                    'typ' => 'JWT',
41
                ],
42
                'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9'
43
            ],
44
            [
45
                [
46
                    'sub'   => '1234567890',
47
                    'name'  => 'John Doe',
48
                    'admin' => true,
49
                ]
50
                ,
51
                'eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9'
52
            ]
53
        ];
54
    }
55
}
56