1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Add types to Util tests (#10228)

This commit is contained in:
Martin Herndl 2021-10-27 16:18:46 +02:00 committed by GitHub
parent d51c7685da
commit 2992e8651a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 268 additions and 49 deletions

View file

@ -19,6 +19,10 @@ class NoProxyPatternTest extends TestCase
{
/**
* @dataProvider dataHostName
*
* @param string $noproxy
* @param string $url
* @param bool $expected
*/
public function testHostName($noproxy, $url, $expected)
{
@ -46,6 +50,10 @@ class NoProxyPatternTest extends TestCase
/**
* @dataProvider dataIpAddress
*
* @param string $noproxy
* @param string $url
* @param bool $expected
*/
public function testIpAddress($noproxy, $url, $expected)
{
@ -71,6 +79,10 @@ class NoProxyPatternTest extends TestCase
/**
* @dataProvider dataIpRange
*
* @param string $noproxy
* @param string $url
* @param bool $expected
*/
public function testIpRange($noproxy, $url, $expected)
{
@ -96,6 +108,10 @@ class NoProxyPatternTest extends TestCase
/**
* @dataProvider dataPort
*
* @param string $noproxy
* @param string $url
* @param bool $expected
*/
public function testPort($noproxy, $url, $expected)
{
@ -121,6 +137,8 @@ class NoProxyPatternTest extends TestCase
* Appends a scheme to the test url if it is missing
*
* @param string $url
*
* @return string
*/
private function getUrl($url)
{