1
0
Fork 0

Merge pull request #4927 from alcohol/issue-4925

fix #4925
pull/4930/head
Jordi Boggiano 2016-02-17 10:57:07 +00:00
commit dfd61a53d0
2 changed files with 11 additions and 2 deletions

View File

@ -19,6 +19,10 @@ class ZipArchiverTest extends ArchiverTest
public function testZipArchive()
{
if (!class_exists('ZipArchive')) {
$this->markTestSkipped('Cannot run ZipArchiverTest, missing class "ZipArchive".');
}
// Set up repository
$this->setupDummyRepo();
$package = $this->setupPackage();

View File

@ -72,16 +72,21 @@ class RepositoryManagerTest extends TestCase
public function creationCases()
{
return array(
$cases = array(
array('composer', array('url' => 'http://example.org')),
array('vcs', array('url' => 'http://github.com/foo/bar')),
array('git', array('url' => 'http://github.com/foo/bar')),
array('git', array('url' => 'git@example.org:foo/bar.git')),
array('svn', array('url' => 'svn://example.org/foo/bar')),
array('pear', array('url' => 'http://pear.example.org/foo')),
array('artifact', array('url' => '/path/to/zips')),
array('package', array('package' => array())),
array('invalid', array(), 'InvalidArgumentException'),
);
if (class_exists('ZipArchive')) {
$cases[] = array('artifact', array('url' => '/path/to/zips'));
}
return $cases;
}
}