1
0
Fork 0

Merge pull request #3562 from stof/patch-1

Add the package license for PEAR packages
pull/3476/head
Jordi Boggiano 2014-12-28 15:09:37 +00:00
commit 0a0ad6c335
2 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,7 @@ class PearRepository extends ArrayRepository
$package = new CompletePackage($composerPackageName, $normalizedVersion, $version);
$package->setType('pear-library');
$package->setDescription($packageDefinition->getDescription());
$package->setLicense(array($packageDefinition->getLicense()));
$package->setDistType('file');
$package->setDistUrl($distUrl);
$package->setAutoload(array('classmap' => array('')));

View File

@ -121,6 +121,7 @@ class ChannelReaderTest extends TestCase
$expectedPackage->setType('pear-library');
$expectedPackage->setDistType('file');
$expectedPackage->setDescription('description');
$expectedPackage->setLicense(array('license'));
$expectedPackage->setDistUrl("http://test.loc/get/sample-1.0.0.1.tgz");
$expectedPackage->setAutoload(array('classmap' => array('')));
$expectedPackage->setIncludePaths(array('/'));