mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add htaccess-protect option for disabling the creation of .htaccess files
This commit is contained in:
parent
7cee8e385f
commit
f0924fb878
5 changed files with 32 additions and 9 deletions
|
@ -310,4 +310,12 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
|
|||
$this->assertEquals(0, $config->get('process-timeout'));
|
||||
putenv('COMPOSER_PROCESS_TIMEOUT');
|
||||
}
|
||||
|
||||
public function testHtaccessProtect()
|
||||
{
|
||||
putenv('COMPOSER_HTACCESS_PROTECT=0');
|
||||
$config = new Config(true);
|
||||
$this->assertEquals(0, $config->get('htaccess-protect'));
|
||||
putenv('COMPOSER_HTACCESS_PROTECT');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue