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

Revert previous change, use GIT_ASKPASS env var instead

This commit is contained in:
Jordi Boggiano 2012-06-27 18:28:49 +02:00
parent 4ee1ff46a8
commit 656feda837
4 changed files with 13 additions and 3 deletions

View file

@ -48,6 +48,11 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
->setConstructorArgs(array($io))
->getMock();
$process = $this->getMock('Composer\Util\ProcessExecutor');
$process->expects($this->any())
->method('execute')
->will($this->returnValue(1));
$remoteFilesystem->expects($this->at(0))
->method('getContents')
->with($this->equalTo('github.com'), $this->equalTo($repoApiUrl), $this->equalTo(false))
@ -72,7 +77,7 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
->with($this->equalTo('github.com'), $this->equalTo($repoApiUrl), $this->equalTo(false))
->will($this->returnValue('{"master_branch": "test_master"}'));
$gitHubDriver = new GitHubDriver($repoUrl, $io, $this->config, null, $remoteFilesystem);
$gitHubDriver = new GitHubDriver($repoUrl, $io, $this->config, $process, $remoteFilesystem);
$gitHubDriver->initialize();
$this->setAttribute($gitHubDriver, 'tags', array($identifier => $sha));