mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Code optimizations: avoid loops in match()
This commit is contained in:
parent
21a0ae9cad
commit
beb9a5bd72
4 changed files with 72 additions and 73 deletions
|
@ -34,7 +34,7 @@ class ArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$package = $this->loader->load($config);
|
||||
$replaces = $package->getReplaces();
|
||||
$this->assertEquals('== 1.2.3.4', (string) $replaces[0]->getConstraint());
|
||||
$this->assertEquals('== 1.2.3.4', (string) $replaces['foo']->getConstraint());
|
||||
}
|
||||
|
||||
public function testTypeDefault()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue