Skip to content

Commit 1504b67

Browse files
OskarStarknicolas-grekas
authored andcommitted
Migrate to static data providers using rector/rector
1 parent 1ef0c5c commit 1504b67

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Tests/PackageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testGetUrl($version, $format, $path, $expected)
2727
$this->assertSame($expected, $package->getUrl($path));
2828
}
2929

30-
public function getConfigs()
30+
public static function getConfigs()
3131
{
3232
return [
3333
['v1', '', 'http://example.com/foo', 'http://example.com/foo'],

Tests/PathPackageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testGetUrl($basePath, $format, $path, $expected)
2828
$this->assertSame($expected, $package->getUrl($path));
2929
}
3030

31-
public function getConfigs()
31+
public static function getConfigs()
3232
{
3333
return [
3434
['/foo', '', 'http://example.com/foo', 'http://example.com/foo'],
@@ -60,7 +60,7 @@ public function testGetUrlWithContext($basePathRequest, $basePath, $format, $pat
6060
$this->assertSame($expected, $package->getUrl($path));
6161
}
6262

63-
public function getContextConfigs()
63+
public static function getContextConfigs()
6464
{
6565
return [
6666
['', '/foo', '', '/baz', '/baz?v1'],

Tests/UrlPackageTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testGetUrl($baseUrls, $format, $path, $expected)
3131
$this->assertSame($expected, $package->getUrl($path));
3232
}
3333

34-
public function getConfigs()
34+
public static function getConfigs()
3535
{
3636
return [
3737
['http://example.net', '', 'http://example.com/foo', 'http://example.com/foo'],
@@ -72,7 +72,7 @@ public function testGetUrlWithContext($secure, $baseUrls, $format, $path, $expec
7272
$this->assertSame($expected, $package->getUrl($path));
7373
}
7474

75-
public function getContextConfigs()
75+
public static function getContextConfigs()
7676
{
7777
return [
7878
[false, 'http://example.com', '', 'foo', 'http://example.com/foo?v1'],
@@ -114,7 +114,7 @@ public function testWrongBaseUrl($baseUrls)
114114
new UrlPackage($baseUrls, new EmptyVersionStrategy());
115115
}
116116

117-
public function getWrongBaseUrlConfig()
117+
public static function getWrongBaseUrlConfig()
118118
{
119119
return [
120120
['not-a-url'],

Tests/VersionStrategy/StaticVersionStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testApplyVersion($path, $version, $format)
3434
$this->assertSame($formatted, $staticVersionStrategy->applyVersion($path));
3535
}
3636

37-
public function getConfigs()
37+
public static function getConfigs()
3838
{
3939
return [
4040
['test-path', 'v1', null],

0 commit comments

Comments
 (0)