1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Merge branch '2.2' into main

This commit is contained in:
Jordi Boggiano 2022-02-15 16:52:03 +01:00
commit 45218092b4
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
5 changed files with 13 additions and 7 deletions

View file

@ -328,16 +328,20 @@ class ConfigTest extends TestCase
{
Platform::putEnv('COMPOSER_PROCESS_TIMEOUT', '0');
$config = new Config(true);
$this->assertEquals(0, $config->get('process-timeout'));
$result = $config->get('process-timeout');
Platform::clearEnv('COMPOSER_PROCESS_TIMEOUT');
$this->assertEquals(0, $result);
}
public function testHtaccessProtect()
{
Platform::putEnv('COMPOSER_HTACCESS_PROTECT', '0');
$config = new Config(true);
$this->assertEquals(0, $config->get('htaccess-protect'));
$result = $config->get('htaccess-protect');
Platform::clearEnv('COMPOSER_HTACCESS_PROTECT');
$this->assertEquals(0, $result);
}
public function testGetSourceOfValue()
@ -360,7 +364,9 @@ class ConfigTest extends TestCase
{
Platform::putEnv('COMPOSER_HTACCESS_PROTECT', '0');
$config = new Config;
$this->assertEquals('COMPOSER_HTACCESS_PROTECT', $config->getSourceOfValue('htaccess-protect'));
$result = $config->getSourceOfValue('htaccess-protect');
Platform::clearEnv('COMPOSER_HTACCESS_PROTECT');
$this->assertEquals('COMPOSER_HTACCESS_PROTECT', $result);
}
}