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:
parent
7d67da3ffa
commit
873f17261c
4 changed files with 32 additions and 7 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue