1
0
Fork 0

modified test in order not to depend on sorting order

pull/1728/head
Serge Smertin 2013-03-31 22:01:55 +02:00
parent ac75a9e6d8
commit b0aa98f287
1 changed files with 5 additions and 2 deletions

View File

@ -22,10 +22,10 @@ class ArtifactRepositoryTest extends TestCase
public function testExtractsConfigsFromZipArchives() public function testExtractsConfigsFromZipArchives()
{ {
$expectedPackages = array( $expectedPackages = array(
'vendor0/package0-0.0.1',
'composer/composer-1.0.0-alpha6', 'composer/composer-1.0.0-alpha6',
'composer/composer-dev-master', 'composer/composer-dev-master',
'composer/composer-1.0.x-dev', 'composer/composer-1.0.x-dev',
'vendor0/package0-0.0.1',
'vendor1/package2-4.3.2', 'vendor1/package2-4.3.2',
); );
@ -36,6 +36,9 @@ class ArtifactRepositoryTest extends TestCase
return "{$package->getPrettyName()}-{$package->getPrettyVersion()}"; return "{$package->getPrettyName()}-{$package->getPrettyVersion()}";
}, $repo->getPackages()); }, $repo->getPackages());
$this->assertEquals($expectedPackages, $foundPackages); sort($expectedPackages);
sort($foundPackages);
$this->assertSame($expectedPackages, $foundPackages);
} }
} }