1
0
Fork 0
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:
Martin Hasoň 2012-02-21 08:59:52 +01:00
parent b8f200b0f2
commit 56c0e511da
3 changed files with 28 additions and 2 deletions

View file

@ -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;