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

Add prettyVersion to packages, fixes #76

This commit is contained in:
Jordi Boggiano 2011-11-20 15:06:12 +01:00
parent 4140f08d9c
commit 8e6f8ae57e
16 changed files with 178 additions and 146 deletions

View file

@ -13,9 +13,9 @@
namespace Composer\Repository;
use Composer\Repository\FilesystemRepository;
use Composer\Package\MemoryPackage;
use Composer\Test\TestCase;
class FilesystemRepositoryTest extends \PHPUnit_Framework_TestCase
class FilesystemRepositoryTest extends TestCase
{
public function testRepositoryRead()
{
@ -99,10 +99,10 @@ class FilesystemRepositoryTest extends \PHPUnit_Framework_TestCase
->expects($this->once())
->method('write')
->with(array(
array('name' => 'mypkg', 'type' => 'library', 'names' => array('mypkg'), 'version' => '0.1.10')
array('name' => 'mypkg', 'type' => 'library', 'names' => array('mypkg'), 'version' => '0.1.10.0')
));
$repository->addPackage(new MemoryPackage('mypkg', '0.1.10'));
$repository->addPackage($this->getPackage('mypkg', '0.1.10'));
$repository->write();
}