1
0
Fork 0
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:
Jordi Boggiano 2021-09-05 16:02:10 +02:00
parent dd49db6f08
commit 4bcd860b65
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
29 changed files with 217 additions and 119 deletions

View file

@ -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(),
);