mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Adjust codebase to the new VersionParser
This commit is contained in:
parent
f761cfe525
commit
46a67733f8
10 changed files with 29 additions and 34 deletions
|
@ -18,11 +18,10 @@ class MemoryPackageTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
public function testMemoryPackage()
|
||||
{
|
||||
$package = new MemoryPackage('foo', '1', 'beta');
|
||||
$package = new MemoryPackage('foo', '1-beta');
|
||||
|
||||
$this->assertEquals('foo', $package->getName());
|
||||
$this->assertEquals('1', $package->getVersion());
|
||||
$this->assertEquals('beta', $package->getReleaseType());
|
||||
$this->assertEquals('1-beta', $package->getVersion());
|
||||
|
||||
$this->assertEquals('foo-1-beta', (string) $package);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue