1
0
Fork 0
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:
Jordi Boggiano 2012-10-14 16:35:32 +02:00
parent 21a0ae9cad
commit beb9a5bd72
4 changed files with 72 additions and 73 deletions

View file

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