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:
parent
bf5f34a114
commit
39e69a3b12
10 changed files with 170 additions and 102 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue