1
0
Fork 0
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:
Luís Otávio Cobucci Oblonczyk 2013-08-19 04:38:25 -03:00
parent 2e2b66b16e
commit d4043b6b9a
3 changed files with 14 additions and 2 deletions

View file

@ -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'))