mirror of
https://github.com/composer/composer
synced 2025-05-08 16:17:37 +00:00
Added support for change the process timeout
This commit is contained in:
parent
b8f200b0f2
commit
56c0e511da
3 changed files with 28 additions and 2 deletions
|
@ -33,6 +33,14 @@ class ProcessExecutorTest extends TestCase
|
|||
$this->assertEquals("foo".PHP_EOL, $output);
|
||||
}
|
||||
|
||||
public function testTimeout()
|
||||
{
|
||||
ProcessExecutor::setTimeout(1);
|
||||
$process = new ProcessExecutor;
|
||||
$this->assertEquals(1, $process->getTimeout());
|
||||
ProcessExecutor::setTimeout(60);
|
||||
}
|
||||
|
||||
public function testSplitLines()
|
||||
{
|
||||
$process = new ProcessExecutor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue