mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Add types to Util
tests (#10228)
This commit is contained in:
parent
d51c7685da
commit
2992e8651a
21 changed files with 268 additions and 49 deletions
|
@ -68,6 +68,13 @@ class ProxyManagerTest extends TestCase
|
|||
|
||||
/**
|
||||
* @dataProvider dataRequest
|
||||
*
|
||||
* @param array<string, mixed> $server
|
||||
* @param string $url
|
||||
* @param string $expectedUrl
|
||||
* @param mixed[] $expectedOptions
|
||||
* @param bool $expectedSecure
|
||||
* @param string $expectedMessage
|
||||
*/
|
||||
public function testGetProxyForRequest($server, $url, $expectedUrl, $expectedOptions, $expectedSecure, $expectedMessage)
|
||||
{
|
||||
|
@ -126,6 +133,10 @@ class ProxyManagerTest extends TestCase
|
|||
|
||||
/**
|
||||
* @dataProvider dataStatus
|
||||
*
|
||||
* @param array<string, mixed> $server
|
||||
* @param bool $expectedStatus
|
||||
* @param string $expectedMessage
|
||||
*/
|
||||
public function testGetStatus($server, $expectedStatus, $expectedMessage)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue