@@ -45,7 +45,7 @@ public function testSupport($request)
4545 $ this ->assertTrue ($ this ->authenticator ->supports ($ request ));
4646 }
4747
48- public function provideSupportData ()
48+ public static function provideSupportData ()
4949 {
5050 yield [new Request ([], [], [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ], '{"username": "dunglas", "password": "foo"} ' )];
5151
@@ -64,7 +64,7 @@ public function testSupportsWithCheckPath($request, $result)
6464 $ this ->assertSame ($ result , $ this ->authenticator ->supports ($ request ));
6565 }
6666
67- public function provideSupportsWithCheckPathData ()
67+ public static function provideSupportsWithCheckPathData ()
6868 {
6969 yield [Request::create ('/api/login ' , 'GET ' , [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ]), true ];
7070 yield [Request::create ('/login ' , 'GET ' , [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ]), false ];
@@ -104,7 +104,7 @@ public function testAuthenticateInvalid($request, $errorMessage, $exceptionType
104104 $ this ->authenticator ->authenticate ($ request );
105105 }
106106
107- public function provideInvalidAuthenticateData ()
107+ public static function provideInvalidAuthenticateData ()
108108 {
109109 $ request = new Request ([], [], [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ]);
110110 yield [$ request , 'Invalid JSON. ' ];
0 commit comments