mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Reuse operation formatting logic in downloaders
This commit is contained in:
parent
aaef3ff5ff
commit
83c64a9d19
10 changed files with 56 additions and 61 deletions
|
@ -81,7 +81,7 @@ class BasePackageTest extends TestCase
|
|||
$createPackage = function ($arr) use ($self) {
|
||||
$package = $self->getMockForAbstractClass('\Composer\Package\BasePackage', array(), '', false);
|
||||
$package->expects($self->once())->method('isDev')->will($self->returnValue(true));
|
||||
$package->expects($self->once())->method('getSourceType')->will($self->returnValue('git'));
|
||||
$package->expects($self->any())->method('getSourceType')->will($self->returnValue('git'));
|
||||
$package->expects($self->once())->method('getPrettyVersion')->will($self->returnValue('PrettyVersion'));
|
||||
$package->expects($self->any())->method('getSourceReference')->will($self->returnValue($arr['sourceReference']));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue