mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix CS (#11003)
This commit is contained in:
parent
6e205a0c84
commit
131da999ac
357 changed files with 5943 additions and 9174 deletions
|
@ -23,7 +23,7 @@ class ArchiveCommandTest extends TestCase
|
|||
{
|
||||
public function testUsesConfigFromComposerObject(): void
|
||||
{
|
||||
$input = new ArrayInput(array());
|
||||
$input = new ArrayInput([]);
|
||||
|
||||
$output = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')
|
||||
->getMock();
|
||||
|
@ -33,7 +33,7 @@ class ArchiveCommandTest extends TestCase
|
|||
|
||||
$composer = new Composer;
|
||||
$config = new Config;
|
||||
$config->merge(array('config' => array('archive-format' => 'zip')));
|
||||
$config->merge(['config' => ['archive-format' => 'zip']]);
|
||||
$composer->setConfig($config);
|
||||
|
||||
$manager = $this->getMockBuilder('Composer\Package\Archiver\ArchiveManager')
|
||||
|
@ -50,13 +50,13 @@ class ArchiveCommandTest extends TestCase
|
|||
$composer->setPackage($package);
|
||||
|
||||
$command = $this->getMockBuilder('Composer\Command\ArchiveCommand')
|
||||
->onlyMethods(array(
|
||||
->onlyMethods([
|
||||
'mergeApplicationDefinition',
|
||||
'getSynopsis',
|
||||
'initialize',
|
||||
'tryComposer',
|
||||
'requireComposer',
|
||||
))->getMock();
|
||||
])->getMock();
|
||||
$command->expects($this->atLeastOnce())->method('tryComposer')
|
||||
->willReturn($composer);
|
||||
$command->expects($this->atLeastOnce())->method('requireComposer')
|
||||
|
@ -67,20 +67,20 @@ class ArchiveCommandTest extends TestCase
|
|||
|
||||
public function testUsesConfigFromFactoryWhenComposerIsNotDefined(): void
|
||||
{
|
||||
$input = new ArrayInput(array());
|
||||
$input = new ArrayInput([]);
|
||||
|
||||
$output = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')
|
||||
->getMock();
|
||||
$config = Factory::createConfig();
|
||||
|
||||
$command = $this->getMockBuilder('Composer\Command\ArchiveCommand')
|
||||
->onlyMethods(array(
|
||||
->onlyMethods([
|
||||
'mergeApplicationDefinition',
|
||||
'getSynopsis',
|
||||
'initialize',
|
||||
'tryComposer',
|
||||
'archive',
|
||||
))->getMock();
|
||||
])->getMock();
|
||||
$command->expects($this->once())->method('tryComposer')
|
||||
->willReturn(null);
|
||||
$command->expects($this->once())->method('archive')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue