1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add stderr to exceptions for GitDownloader

This commit is contained in:
Dave Marshall 2012-02-29 11:05:25 +00:00
parent 0e6cf61b67
commit c2421db7d9
3 changed files with 24 additions and 3 deletions

View file

@ -33,6 +33,13 @@ class ProcessExecutorTest extends TestCase
$this->assertEquals("foo".PHP_EOL, $output);
}
public function testExecuteCapturesStderr()
{
$process = new ProcessExecutor;
$process->execute('cat foo', $output);
$this->assertNotNull($process->getErrorOutput());
}
public function testTimeout()
{
ProcessExecutor::setTimeout(1);