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

Make ruleById lookup table in rule set public

Saves about 500k function calls on a packagist update
This commit is contained in:
Nils Adermann 2014-12-01 18:28:45 +01:00
parent 5c0efdcaa2
commit d77400ade2
3 changed files with 10 additions and 9 deletions

View file

@ -76,7 +76,7 @@ class RuleSetTest extends TestCase
$rule = new Rule($this->pool, array(), 'job1', null);
$ruleSet->add($rule, RuleSet::TYPE_JOB);
$this->assertSame($rule, $ruleSet->ruleById(0));
$this->assertSame($rule, $ruleSet->ruleById[0]);
}
public function testGetIterator()