Skip to content

Commit 87bd432

Browse files
Merge branch '5.4' into 6.2
* 5.4: Migrate to `static` data providers using `rector/rector`
2 parents 0844575 + a866ca7 commit 87bd432

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Tests/AbstractBrowserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ public function testFollowMetaRefresh(string $content, string $expectedEndingUrl
623623
$this->assertSame($expectedEndingUrl, $client->getRequest()->getUri());
624624
}
625625

626-
public function getTestsForMetaRefresh()
626+
public static function getTestsForMetaRefresh()
627627
{
628628
return [
629629
['<html><head><meta http-equiv="Refresh" content="4" /><meta http-equiv="refresh" content="0; URL=http://www.example.com/redirected"/></head></html>', 'http://www.example.com/redirected'],

Tests/CookieJarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function testAllValues($uri, $values)
130130
$this->assertEquals($values, array_keys($cookieJar->allValues($uri)), '->allValues() returns the cookie for a given URI');
131131
}
132132

133-
public function provideAllValuesValues()
133+
public static function provideAllValuesValues()
134134
{
135135
return [
136136
['http://www.example.com', ['foo_nothing', 'foo_domain']],

Tests/CookieTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testToFromString($cookie, $url = null)
4242
$this->assertEquals($cookie, (string) Cookie::fromString($cookie, $url));
4343
}
4444

45-
public function getTestsForToFromString()
45+
public static function getTestsForToFromString()
4646
{
4747
return [
4848
['foo=bar; path=/'],
@@ -71,7 +71,7 @@ public function testFromStringAcceptsSeveralExpiresDateFormats($cookie)
7171
$this->assertEquals(1596185377, Cookie::fromString($cookie)->getExpiresTime());
7272
}
7373

74-
public function getExpireCookieStrings()
74+
public static function getExpireCookieStrings()
7575
{
7676
return [
7777
['foo=bar; expires=Fri, 31-Jul-2020 08:49:37 GMT'],

Tests/HttpBrowserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testRequestHeaders(array $requestArguments, array $expectedArgum
4040
$browser->request(...$requestArguments);
4141
}
4242

43-
public function validContentTypes()
43+
public static function validContentTypes()
4444
{
4545
$defaultHeaders = ['user-agent' => 'Symfony BrowserKit', 'host' => 'example.com'];
4646
yield 'GET/HEAD' => [
@@ -199,7 +199,7 @@ public function testMultipleForwardSlashesRequestPath(string $requestPath)
199199
$browser->request('GET', $requestPath);
200200
}
201201

202-
public function forwardSlashesRequestPathProvider()
202+
public static function forwardSlashesRequestPathProvider()
203203
{
204204
return [
205205
'one slash' => ['/'],

Tests/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testToArrayThrowsErrorOnInvalidJson(string $data)
103103
$response->toArray();
104104
}
105105

106-
public function provideInvalidJson(): iterable
106+
public static function provideInvalidJson(): iterable
107107
{
108108
yield 'Empty string' => [''];
109109
yield 'Not json' => ['freferfrefer'];

0 commit comments

Comments
 (0)