modified test in order not to depend on sorting order
parent
ac75a9e6d8
commit
b0aa98f287
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue