From 091fee8a3b3b0e3a9a18c7a681797038c018cbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 8 Jan 2015 08:56:12 +0100 Subject: [PATCH] skip some tests when the zip extension misses It is required for some tests to run. --- tests/Composer/Test/Repository/ArtifactRepositoryTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Composer/Test/Repository/ArtifactRepositoryTest.php b/tests/Composer/Test/Repository/ArtifactRepositoryTest.php index 7d64a0141..66c02acdc 100644 --- a/tests/Composer/Test/Repository/ArtifactRepositoryTest.php +++ b/tests/Composer/Test/Repository/ArtifactRepositoryTest.php @@ -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(