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:
parent
0e6cf61b67
commit
c2421db7d9
3 changed files with 24 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue