@@ -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 ' , '. ' ];
@@ -60,7 +60,7 @@ public function testResolveUrl(string $base, string $url, string $expected)
60
60
/**
61
61
* From https://github.com/guzzle/psr7/blob/master/tests/UriResoverTest.php.
62
62
*/
63
- public function provideResolveUrl (): array
63
+ public static function provideResolveUrl (): array
64
64
{
65
65
return [
66
66
[self ::RFC3986_BASE , 'http:h ' , 'http:h ' ],
@@ -148,7 +148,7 @@ public function testParseUrl(array $expected, string $url, array $query = [])
148
148
$ this ->assertSame ($ expected , self ::parseUrl ($ url , $ query ));
149
149
}
150
150
151
- public function provideParseUrl (): iterable
151
+ public static function provideParseUrl (): iterable
152
152
{
153
153
yield [['http: ' , '//example.com ' , null , null , null ], 'http://Example.coM:80 ' ];
154
154
yield [['https: ' , '//xn--dj-kia8a.example.com:8000 ' , '/ ' , null , null ], 'https://DÉjà.Example.com:8000/ ' ];
@@ -175,7 +175,7 @@ public function testRemoveDotSegments($expected, $url)
175
175
$ this ->assertSame ($ expected , self ::removeDotSegments ($ url ));
176
176
}
177
177
178
- public function provideRemoveDotSegments ()
178
+ public static function provideRemoveDotSegments ()
179
179
{
180
180
yield ['' , '' ];
181
181
yield ['' , '. ' ];
@@ -224,7 +224,7 @@ public function testSetJSONAndBodyOptions()
224
224
self ::prepareRequest ('POST ' , 'http://example.com ' , ['json ' => ['foo ' => 'bar ' ], 'body ' => '<html/> ' ], HttpClientInterface::OPTIONS_DEFAULTS );
225
225
}
226
226
227
- public function providePrepareAuthBasic ()
227
+ public static function providePrepareAuthBasic ()
228
228
{
229
229
yield ['foo:bar ' , 'Zm9vOmJhcg== ' ];
230
230
yield [['foo ' , 'bar ' ], 'Zm9vOmJhcg== ' ];
@@ -241,7 +241,7 @@ public function testPrepareAuthBasic($arg, $result)
241
241
$ this ->assertSame ('Authorization: Basic ' .$ result , $ options ['normalized_headers ' ]['authorization ' ][0 ]);
242
242
}
243
243
244
- public function provideFingerprints ()
244
+ public static function provideFingerprints ()
245
245
{
246
246
foreach (['md5 ' , 'sha1 ' , 'sha256 ' ] as $ algo ) {
247
247
$ hash = hash ($ algo , $ algo );
0 commit comments