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:
parent
62fd612e63
commit
62eff8e979
6 changed files with 31 additions and 24 deletions
|
@ -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)';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue