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

skip some tests when the zip extension misses

It is required for some tests to run.
This commit is contained in:
Grégoire Paris 2015-01-08 08:56:12 +01:00
parent c58b7d917c
commit 091fee8a3b

View file

@ -19,6 +19,14 @@ use Composer\Package\BasePackage;
class ArtifactRepositoryTest extends TestCase
{
public function setUp()
{
parent::setUp();
if (!extension_loaded('zip')) {
$this->markTestSkipped('You need the zip extension to run this test.');
}
}
public function testExtractsConfigsFromZipArchives()
{
$expectedPackages = array(