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

@ -82,7 +82,7 @@ class ProxyManagerTest extends TestCase
$this->assertSame($expectedOptions, $proxy->getContextOptions());
$this->assertSame($expectedSecure, $proxy->isSecure());
$message = $proxy->getLastProxy();
$message = $proxy->getFormattedUrl();
if ($expectedMessage) {
$condition = stripos($message, $expectedMessage) !== false;
@ -134,7 +134,8 @@ class ProxyManagerTest extends TestCase
{
$_SERVER = array_merge($_SERVER, $server);
$proxyManager = ProxyManager::getInstance();
$status = $proxyManager->getStatus($message);
$status = $proxyManager->isProxying();
$message = $proxyManager->getFormattedProxy();
$this->assertSame($expectedStatus, $status);