1
0
Fork 0
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:
Pádraic Brady 2014-02-23 10:20:48 +00:00
parent aa74818fe0
commit 7e30c67827
3 changed files with 48 additions and 0 deletions

View file

@ -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'));
}
}