1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Tweaks to new proxying code, refs #9324

This commit is contained in:
Jordi Boggiano 2020-10-24 10:36:39 +02:00
parent 62fd612e63
commit 62eff8e979
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
6 changed files with 31 additions and 24 deletions

View file

@ -38,17 +38,17 @@ class RequestProxyTest extends TestCase
}
/**
* @dataProvider dataLastProxy
* @dataProvider dataProxyUrl
*/
public function testGetLastProxyFormat($url, $format, $expected)
public function testGetFormattedUrlFormat($url, $format, $expected)
{
$proxy = new RequestProxy($url, array(), $url);
$message = $proxy->getLastProxy($format);
$message = $proxy->getFormattedUrl($format);
$this->assertSame($expected, $message);
}
public function dataLastProxy()
public function dataProxyUrl()
{
$format = 'proxy (%s)';