mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Finalize platform override feature
- Added tests, docs - Persist to lock file - Add support in config command - Added to json schema
This commit is contained in:
parent
80b0a35a68
commit
a57c51e8d7
10 changed files with 106 additions and 44 deletions
|
@ -134,11 +134,12 @@ class LockerTest extends \PHPUnit_Framework_TestCase
|
|||
'stability-flags' => array(),
|
||||
'platform' => array(),
|
||||
'platform-dev' => array(),
|
||||
'platform-overrides' => array('foo/bar' => '1.0'),
|
||||
'prefer-stable' => false,
|
||||
'prefer-lowest' => false,
|
||||
));
|
||||
|
||||
$locker->setLockData(array($package1, $package2), array(), array(), array(), array(), 'dev', array(), false, false);
|
||||
$locker->setLockData(array($package1, $package2), array(), array(), array(), array(), 'dev', array(), false, false, array('foo/bar' => '1.0'));
|
||||
}
|
||||
|
||||
public function testLockBadPackages()
|
||||
|
@ -157,7 +158,7 @@ class LockerTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$this->setExpectedException('LogicException');
|
||||
|
||||
$locker->setLockData(array($package1), array(), array(), array(), array(), 'dev', array(), false, false);
|
||||
$locker->setLockData(array($package1), array(), array(), array(), array(), 'dev', array(), false, false, array());
|
||||
}
|
||||
|
||||
public function testIsFresh()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue