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

Fix locking behavior with --dev

This commit is contained in:
Jordi Boggiano 2012-04-15 19:05:50 +02:00
parent f63df842b3
commit a1306091f2
3 changed files with 28 additions and 11 deletions

View file

@ -22,9 +22,13 @@ class LockerTest extends \PHPUnit_Framework_TestCase
$locker = new Locker($json, $this->createRepositoryManagerMock(), 'md5');
$json
->expects($this->once())
->expects($this->any())
->method('exists')
->will($this->returnValue(true));
$json
->expects($this->any())
->method('read')
->will($this->returnValue(array('packages' => array())));
$this->assertTrue($locker->isLocked());
}