mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Package options must be passed as argument to downloader
This commit is contained in:
parent
2e2b66b16e
commit
d4043b6b9a
3 changed files with 14 additions and 2 deletions
|
@ -89,6 +89,10 @@ class FileDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
->method('getDistUrl')
|
||||
->will($this->returnValue('http://example.com/script.js'))
|
||||
;
|
||||
$packageMock->expects($this->atLeastOnce())
|
||||
->method('getOptions')
|
||||
->will($this->returnValue(array()))
|
||||
;
|
||||
|
||||
do {
|
||||
$path = sys_get_temp_dir().'/'.md5(time().mt_rand());
|
||||
|
@ -130,6 +134,10 @@ class FileDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
->method('getDistUrl')
|
||||
->will($this->returnValue('http://example.com/script.js'))
|
||||
;
|
||||
$packageMock->expects($this->atLeastOnce())
|
||||
->method('getOptions')
|
||||
->will($this->returnValue(array()))
|
||||
;
|
||||
$packageMock->expects($this->any())
|
||||
->method('getDistSha1Checksum')
|
||||
->will($this->returnValue('invalid'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue