mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Internalize pool creation in repository set, store root aliases in set
The pool is still exposed too early in a few places which will require further refactoring
This commit is contained in:
parent
6ef65e5319
commit
1228bcdffc
17 changed files with 248 additions and 133 deletions
|
@ -17,6 +17,7 @@ use Composer\DependencyResolver\Rule;
|
|||
use Composer\DependencyResolver\RuleSet;
|
||||
use Composer\DependencyResolver\RuleSetIterator;
|
||||
use Composer\DependencyResolver\Pool;
|
||||
use Composer\Package\BasePackage;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class RuleSetIteratorTest extends TestCase
|
||||
|
@ -26,7 +27,7 @@ class RuleSetIteratorTest extends TestCase
|
|||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->pool = new Pool;
|
||||
$this->pool = new Pool(array('stable' => BasePackage::STABILITY_STABLE));
|
||||
|
||||
$this->rules = array(
|
||||
RuleSet::TYPE_JOB => array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue