Code Duplication    Length = 9-10 lines in 3 locations

src/Graviton/SecurityBundle/Tests/Authentication/SecurityAuthenticatorTest.php 1 location

@@ 81-90 (lines=10) @@
78
    /**
79
     * @return array<string>
80
     */
81
    public function stringProvider()
82
    {
83
        return array(
84
            'plain string, no special chars' => array('exampleAuthenticationHeader'),
85
            'string with special chars' => array("$-_.+!*'(),{}|\\^~[]`<>#%;/?:@&=."),
86
            'string with octal chars' => array("a: \141, A: \101"),
87
            'string with hex chars' => array("a: \x61, A: \x41"),
88
            'live example' => array("10N0000188"),
89
        );
90
    }
91
92
    /**
93
     * @return void

src/Graviton/SecurityBundle/Tests/Authentication/Strategies/CookieFieldStrategyTest.php 1 location

@@ 79-87 (lines=9) @@
76
    /**
77
     * @return array<string>
78
     */
79
    public function stringProvider()
80
    {
81
        return array(
82
            'plain string, no special chars' => array('exampleAuthenticationHeader'),
83
            'string with special chars'      => array("$-_.+!*'(),{}|\\^~[]`<>#%;/?:@&=."),
84
            'string with octal chars'        => array("a: \141, A: \101"),
85
            'string with hex chars'          => array("a: \x61, A: \x41")
86
        );
87
    }
88
89
    /**
90
     * Todo, find a way to have also to client id set in request stack.

src/Graviton/SecurityBundle/Tests/Authentication/Strategies/HeaderFieldStrategyTest.php 1 location

@@ 62-70 (lines=9) @@
59
    /**
60
     * @return array<string>
61
     */
62
    public function stringProvider()
63
    {
64
        return array(
65
            'plain string, no special chars' => array('exampleAuthenticationHeader'),
66
            'string with special chars'      => array("$-_.+!*'(),{}|\\^~[]`<>#%;/?:@&=."),
67
            'string with octal chars'        => array("a: \141, A: \101"),
68
            'string with hex chars'          => array("a: \x61, A: \x41")
69
        );
70
    }
71
}
72