1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

try to fix test instead of guarding implementation

This commit is contained in:
Rob Bast 2016-11-25 08:28:49 +01:00
parent 7d67da3ffa
commit 873f17261c
No known key found for this signature in database
GPG key ID: 73076E35E6165F39
4 changed files with 32 additions and 7 deletions

View file

@ -198,18 +198,26 @@ class VersionSelectorTest extends \PHPUnit_Framework_TestCase
$versionParser = new VersionParser();
$package = $this->getMock('\Composer\Package\PackageInterface');
$package->expects($this->any())
$package
->expects($this->any())
->method('getPrettyVersion')
->will($this->returnValue($prettyVersion));
$package->expects($this->any())
$package
->expects($this->any())
->method('getVersion')
->will($this->returnValue($versionParser->normalize($prettyVersion)));
$package->expects($this->any())
$package
->expects($this->any())
->method('isDev')
->will($this->returnValue($isDev));
$package->expects($this->any())
$package
->expects($this->any())
->method('getStability')
->will($this->returnValue($stability));
$package
->expects($this->any())
->method('getTransportOptions')
->will($this->returnValue(array()));
$branchAlias = $branchAlias === null ? array() : array('branch-alias' => array($prettyVersion => $branchAlias));
$package->expects($this->any())