From b125926ad3e0781297879ff627cefcd9636f9805 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 20 Nov 2011 15:46:15 +0100 Subject: [PATCH] Fix tests --- tests/Composer/Test/Package/LockerTest.php | 10 +++++----- .../Test/Repository/FilesystemRepositoryTest.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Composer/Test/Package/LockerTest.php b/tests/Composer/Test/Package/LockerTest.php index 6ff2f6da0..1993e8cd5 100644 --- a/tests/Composer/Test/Package/LockerTest.php +++ b/tests/Composer/Test/Package/LockerTest.php @@ -122,20 +122,20 @@ class LockerTest extends \PHPUnit_Framework_TestCase $package1 ->expects($this->once()) - ->method('getName') + ->method('getPrettyName') ->will($this->returnValue('pkg1')); $package1 ->expects($this->once()) - ->method('getVersion') + ->method('getPrettyVersion') ->will($this->returnValue('1.0.0-beta')); $package2 ->expects($this->once()) - ->method('getName') + ->method('getPrettyName') ->will($this->returnValue('pkg2')); $package2 ->expects($this->once()) - ->method('getVersion') + ->method('getPrettyVersion') ->will($this->returnValue('0.1.10')); $json @@ -159,7 +159,7 @@ class LockerTest extends \PHPUnit_Framework_TestCase $package1 = $this->createPackageMock(); $package1 ->expects($this->once()) - ->method('getName') + ->method('getPrettyName') ->will($this->returnValue('pkg1')); $this->setExpectedException('LogicException'); diff --git a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php index de69d34d5..372300472 100644 --- a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php +++ b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php @@ -99,7 +99,7 @@ class FilesystemRepositoryTest extends TestCase ->expects($this->once()) ->method('write') ->with(array( - array('name' => 'mypkg', 'type' => 'library', 'names' => array('mypkg'), 'version' => '0.1.10.0') + array('name' => 'mypkg', 'type' => 'library', 'names' => array('mypkg'), 'version' => '0.1.10') )); $repository->addPackage($this->getPackage('mypkg', '0.1.10'));