mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add more type annotations
This commit is contained in:
parent
dd49db6f08
commit
4bcd860b65
29 changed files with 217 additions and 119 deletions
|
@ -17,6 +17,7 @@ use Composer\DependencyResolver\Rule;
|
|||
use Composer\DependencyResolver\RuleSet;
|
||||
use Composer\DependencyResolver\RuleSetIterator;
|
||||
use Composer\DependencyResolver\Pool;
|
||||
use Composer\Semver\Constraint\MatchAllConstraint;
|
||||
use Composer\Test\TestCase;
|
||||
|
||||
class RuleSetIteratorTest extends TestCase
|
||||
|
@ -30,11 +31,11 @@ class RuleSetIteratorTest extends TestCase
|
|||
|
||||
$this->rules = array(
|
||||
RuleSet::TYPE_REQUEST => array(
|
||||
new GenericRule(array(), Rule::RULE_ROOT_REQUIRE, null),
|
||||
new GenericRule(array(), Rule::RULE_ROOT_REQUIRE, null),
|
||||
new GenericRule(array(), Rule::RULE_ROOT_REQUIRE, array('packageName' => '', 'constraint' => new MatchAllConstraint)),
|
||||
new GenericRule(array(), Rule::RULE_ROOT_REQUIRE, array('packageName' => '', 'constraint' => new MatchAllConstraint)),
|
||||
),
|
||||
RuleSet::TYPE_LEARNED => array(
|
||||
new GenericRule(array(), Rule::RULE_LEARNED, null),
|
||||
new GenericRule(array(), Rule::RULE_LEARNED, 1),
|
||||
),
|
||||
RuleSet::TYPE_PACKAGE => array(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue