1
0
Fork 0

Fix tests

pull/120/head
Jordi Boggiano 2011-11-20 15:46:15 +01:00
parent 3b8ee5dd54
commit b125926ad3
2 changed files with 6 additions and 6 deletions

View File

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

View File

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