1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +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

@ -27,7 +27,7 @@ class NoProxyPatternTest extends TestCase
$this->assertEquals($expected, $matcher->test($url));
}
public function dataHostName(): array
public static function dataHostName(): array
{
$noproxy = 'foobar.com, .barbaz.net';
@ -54,7 +54,7 @@ class NoProxyPatternTest extends TestCase
$this->assertEquals($expected, $matcher->test($url));
}
public function dataIpAddress(): array
public static function dataIpAddress(): array
{
$noproxy = '192.168.1.1, 2001:db8::52:0:1';
@ -79,7 +79,7 @@ class NoProxyPatternTest extends TestCase
$this->assertEquals($expected, $matcher->test($url));
}
public function dataIpRange(): array
public static function dataIpRange(): array
{
$noproxy = '10.0.0.0/30, 2002:db8:a::45/121';
@ -104,7 +104,7 @@ class NoProxyPatternTest extends TestCase
$this->assertEquals($expected, $matcher->test($url));
}
public function dataPort(): array
public static function dataPort(): array
{
$noproxy = '192.168.1.2:81, 192.168.1.3:80, [2001:db8::52:0:2]:443, [2001:db8::52:0:3]:80';