mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add config.json default config option for "disable-tls" (FALSE by default)
This commit is contained in:
parent
aa74818fe0
commit
7e30c67827
3 changed files with 48 additions and 0 deletions
|
@ -117,4 +117,20 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$this->assertEquals(array('https'), $config->get('github-protocols'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group TLS
|
||||
*/
|
||||
public function testDisableTlsCanBeOverridden()
|
||||
{
|
||||
$config = new Config;
|
||||
$config->merge(
|
||||
array('config' => array('disable-tls' => 'false'))
|
||||
);
|
||||
$this->assertFalse($config->get('disable-tls'));
|
||||
$config->merge(
|
||||
array('config' => array('disable-tls' => 'true'))
|
||||
);
|
||||
$this->assertTrue($config->get('disable-tls'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue