1
0
Fork 0
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:
Jordi Boggiano 2011-09-25 23:58:50 +02:00
parent f761cfe525
commit 46a67733f8
10 changed files with 29 additions and 34 deletions

View file

@ -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);
}