skip some tests when the zip extension misses
It is required for some tests to run.pull/3631/head
parent
c58b7d917c
commit
091fee8a3b
|
@ -19,6 +19,14 @@ use Composer\Package\BasePackage;
|
||||||
|
|
||||||
class ArtifactRepositoryTest extends TestCase
|
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()
|
public function testExtractsConfigsFromZipArchives()
|
||||||
{
|
{
|
||||||
$expectedPackages = array(
|
$expectedPackages = array(
|
||||||
|
|
Loading…
Reference in New Issue