1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Refactor OAuth acquisition code to generalize it

This commit is contained in:
Jordi Boggiano 2012-10-21 17:56:57 +02:00
parent bf5f34a114
commit 39e69a3b12
10 changed files with 170 additions and 102 deletions

View file

@ -17,12 +17,13 @@ use Composer\Util\Filesystem;
class FileDownloaderTest extends \PHPUnit_Framework_TestCase
{
protected function getDownloader($io = null, $rfs = null)
protected function getDownloader($io = null, $config = null, $rfs = null)
{
$io = $io ?: $this->getMock('Composer\IO\IOInterface');
$config = $config ?: $this->getMock('Composer\Config');
$rfs = $rfs ?: $this->getMockBuilder('Composer\Util\RemoteFilesystem')->disableOriginalConstructor()->getMock();
return new FileDownloader($io, $rfs);
return new FileDownloader($io, $config, $rfs);
}
/**