mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix process timeout when set to 0
This commit is contained in:
parent
b171c24101
commit
2c77fd6801
2 changed files with 9 additions and 1 deletions
|
@ -291,4 +291,11 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
|
|||
);
|
||||
$this->assertTrue($config->get('disable-tls'));
|
||||
}
|
||||
|
||||
public function testProcessTimeout()
|
||||
{
|
||||
putenv('COMPOSER_PROCESS_TIMEOUT=0');
|
||||
$config = new Config(true);
|
||||
$this->assertEquals(0, $config->get('process-timeout'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue