1
0
Fork 0

skip some tests when the zip extension misses

It is required for some tests to run.
pull/3631/head
Grégoire Paris 2015-01-08 08:56:12 +01:00
parent c58b7d917c
commit 091fee8a3b
1 changed files with 8 additions and 0 deletions

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(