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

Reorg ComposerRepository to fix tests

This commit is contained in:
Jordi Boggiano 2020-04-13 12:10:31 +02:00
parent 048781c268
commit 62fda2ed85
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 5 additions and 5 deletions

View file

@ -154,7 +154,7 @@ class ComposerRepositoryTest extends TestCase
$versionParser = new VersionParser();
$reflMethod = new \ReflectionMethod($repo, 'whatProvides');
$reflMethod->setAccessible(true);
$packages = $reflMethod->invoke($repo, 'a', array($this, 'isPackageAcceptableReturnTrue'));
$packages = $reflMethod->invoke($repo, 'a');
$this->assertCount(5, $packages);
$this->assertEquals(array('1', '1-alias', '2', '2-alias', '3'), array_keys($packages));