1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00

[Tests] Use static data providers (#11197)

This commit is contained in:
Ion Bazan 2022-11-24 21:39:08 +08:00 committed by GitHub
parent 0cf57255d4
commit 8ff237afb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
86 changed files with 715 additions and 723 deletions

View file

@ -55,7 +55,7 @@ class ProxyHelperTest extends TestCase
ProxyHelper::getProxyData();
}
public function dataMalformed(): array
public static function dataMalformed(): array
{
return [
'no-host' => ['localhost'],
@ -74,7 +74,7 @@ class ProxyHelperTest extends TestCase
$this->assertSame($expected, $httpProxy);
}
public function dataFormatting(): array
public static function dataFormatting(): array
{
// url, expected
return [
@ -97,7 +97,7 @@ class ProxyHelperTest extends TestCase
$this->assertSame($expected, $list[$index]);
}
public function dataCaseOverrides(): array
public static function dataCaseOverrides(): array
{
// server, expected, list index
return [
@ -120,7 +120,7 @@ class ProxyHelperTest extends TestCase
$this->assertSame($expected, $list[$index]);
}
public function dataCGIOverrides(): array
public static function dataCGIOverrides(): array
{
// server, expected, list index
return [
@ -157,7 +157,7 @@ class ProxyHelperTest extends TestCase
$this->assertEquals($expected, ProxyHelper::getContextOptions($url));
}
public function dataContextOptions(): array
public static function dataContextOptions(): array
{
// url, expected
return [
@ -187,7 +187,7 @@ class ProxyHelperTest extends TestCase
$this->assertEquals($expected, $options);
}
public function dataRequestFullUri(): array
public static function dataRequestFullUri(): array
{
$options = ['http' => ['request_fulluri' => true]];