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

@@ 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