@@ -37,7 +37,7 @@ public function testPrepareRequestUrl(string $expected, string $url, array $quer
37
37
$ this ->assertSame ($ expected , implode ('' , $ url ));
38
38
}
39
39
40
- public function providePrepareRequestUrl (): iterable
40
+ public static function providePrepareRequestUrl (): iterable
41
41
{
42
42
yield ['http://example.com/ ' , 'http://example.com/ ' ];
43
43
yield ['http://example.com/?a=1&b=b ' , '. ' ];
@@ -79,7 +79,7 @@ public function testResolveUrl(string $base, string $url, string $expected)
79
79
/**
80
80
* From https://github.com/guzzle/psr7/blob/master/tests/UriResoverTest.php.
81
81
*/
82
- public function provideResolveUrl (): array
82
+ public static function provideResolveUrl (): array
83
83
{
84
84
return [
85
85
[self ::RFC3986_BASE , 'http:h ' , 'http:h ' ],
@@ -167,7 +167,7 @@ public function testParseUrl(array $expected, string $url, array $query = [])
167
167
$ this ->assertSame ($ expected , self ::parseUrl ($ url , $ query ));
168
168
}
169
169
170
- public function provideParseUrl (): iterable
170
+ public static function provideParseUrl (): iterable
171
171
{
172
172
yield [['http: ' , '//example.com ' , null , null , null ], 'http://Example.coM:80 ' ];
173
173
yield [['https: ' , '//xn--dj-kia8a.example.com:8000 ' , '/ ' , null , null ], 'https://DÉjà.Example.com:8000/ ' ];
@@ -194,7 +194,7 @@ public function testRemoveDotSegments($expected, $url)
194
194
$ this ->assertSame ($ expected , self ::removeDotSegments ($ url ));
195
195
}
196
196
197
- public function provideRemoveDotSegments ()
197
+ public static function provideRemoveDotSegments ()
198
198
{
199
199
yield ['' , '' ];
200
200
yield ['' , '. ' ];
@@ -243,7 +243,7 @@ public function testSetJSONAndBodyOptions()
243
243
self ::prepareRequest ('POST ' , 'http://example.com ' , ['json ' => ['foo ' => 'bar ' ], 'body ' => '<html/> ' ], HttpClientInterface::OPTIONS_DEFAULTS );
244
244
}
245
245
246
- public function providePrepareAuthBasic ()
246
+ public static function providePrepareAuthBasic ()
247
247
{
248
248
yield ['foo:bar ' , 'Zm9vOmJhcg== ' ];
249
249
yield [['foo ' , 'bar ' ], 'Zm9vOmJhcg== ' ];
@@ -260,7 +260,7 @@ public function testPrepareAuthBasic($arg, $result)
260
260
$ this ->assertSame ('Authorization: Basic ' .$ result , $ options ['normalized_headers ' ]['authorization ' ][0 ]);
261
261
}
262
262
263
- public function provideFingerprints ()
263
+ public static function provideFingerprints ()
264
264
{
265
265
foreach (['md5 ' , 'sha1 ' , 'sha256 ' ] as $ algo ) {
266
266
$ hash = hash ($ algo , $ algo );
0 commit comments