1
0
Fork 0

Adjusted BasePackage::__toString()

pull/1/head
Jordi Boggiano 2011-05-22 09:08:30 +02:00
parent 27f02aba7d
commit b620405ab0
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ abstract class BasePackage implements PackageInterface
*/ */
public function __toString() public function __toString()
{ {
return $this->getName().'-'.$this->getReleaseType().'-'.$this->getVersion(); return $this->getName().'-'.$this->getVersion().'-'.$this->getReleaseType();
} }
/** /**

View File

@ -24,6 +24,6 @@ class MemoryPackageTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('1', $package->getVersion()); $this->assertEquals('1', $package->getVersion());
$this->assertEquals('beta', $package->getReleaseType()); $this->assertEquals('beta', $package->getReleaseType());
$this->assertEquals('foo-beta-1', (string) $package); $this->assertEquals('foo-1-beta', (string) $package);
} }
} }