Explorar o código

skip some tests when the zip extension misses

It is required for some tests to run.
Grégoire Paris %!s(int64=10) %!d(string=hai) anos
pai
achega
091fee8a3b
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      tests/Composer/Test/Repository/ArtifactRepositoryTest.php

+ 8 - 0
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(