mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
CS fixes
This commit is contained in:
parent
d036b2390e
commit
ac497feaba
53 changed files with 166 additions and 156 deletions
|
@ -28,14 +28,14 @@ class ArtifactRepositoryTest extends TestCase
|
|||
'vendor3/package1-5.4.3',
|
||||
'test/jsonInRoot-1.0.0',
|
||||
'test/jsonInFirstLevel-1.0.0',
|
||||
//The files not-an-artifact.zip and jsonSecondLevel are not valid
|
||||
//The files not-an-artifact.zip and jsonSecondLevel are not valid
|
||||
//artifacts and do not get detected.
|
||||
);
|
||||
|
||||
$coordinates = array('type' => 'artifact', 'url' => __DIR__ . '/Fixtures/artifacts');
|
||||
$repo = new ArtifactRepository($coordinates, new NullIO(), new Config());
|
||||
|
||||
$foundPackages = array_map(function(BasePackage $package) {
|
||||
$foundPackages = array_map(function (BasePackage $package) {
|
||||
return "{$package->getPrettyName()}-{$package->getPrettyVersion()}";
|
||||
}, $repo->getPackages());
|
||||
|
||||
|
@ -73,7 +73,7 @@ class ArtifactRepositoryTest extends TestCase
|
|||
// ),
|
||||
//);
|
||||
//
|
||||
//foreach($archivesToCreate as $archiveName => $fileDetails) {
|
||||
//foreach ($archivesToCreate as $archiveName => $fileDetails) {
|
||||
// $zipFile = new ZipArchive();
|
||||
// $zipFile->open("$archiveName.zip", ZIPARCHIVE::CREATE);
|
||||
//
|
||||
|
@ -83,4 +83,3 @@ class ArtifactRepositoryTest extends TestCase
|
|||
//
|
||||
// $zipFile->close();
|
||||
//}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
namespace Composer\Repository;
|
||||
|
||||
use Composer\Repository\FilesystemRepository;
|
||||
use Composer\TestCase;
|
||||
|
||||
class FilesystemRepositoryTest extends TestCase
|
||||
|
|
|
@ -74,6 +74,7 @@ class PerforceDriverTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$config = new Config();
|
||||
$config->merge(array('config'=>array('home'=>$testPath)));
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
|
@ -104,6 +105,7 @@ class PerforceDriverTest extends \PHPUnit_Framework_TestCase
|
|||
protected function getMockPerforce()
|
||||
{
|
||||
$methods = array('p4login', 'checkStream', 'writeP4ClientSpec', 'connectClient', 'getComposerInformation', 'cleanupClientSpec');
|
||||
|
||||
return $this->getMockBuilder('Composer\Util\Perforce', $methods)->disableOriginalConstructor()->getMock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue