mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix many PHPStan issues and update baseline
This commit is contained in:
parent
6ed3aeb343
commit
96486d81cb
21 changed files with 252 additions and 361 deletions
|
@ -47,6 +47,9 @@ class RunScriptCommandTest extends TestCase
|
|||
->method('hasArgument')
|
||||
->with('command')
|
||||
->willReturn(false);
|
||||
$input
|
||||
->method('isInteractive')
|
||||
->willReturn(false);
|
||||
|
||||
$output = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
||||
|
||||
|
@ -73,17 +76,14 @@ class RunScriptCommandTest extends TestCase
|
|||
$composer->setEventDispatcher($ed);
|
||||
|
||||
$command = $this->getMockBuilder('Composer\Command\RunScriptCommand')
|
||||
->setMethods(array(
|
||||
->onlyMethods(array(
|
||||
'mergeApplicationDefinition',
|
||||
'bind',
|
||||
'getSynopsis',
|
||||
'initialize',
|
||||
'isInteractive',
|
||||
'getComposer',
|
||||
))
|
||||
->getMock();
|
||||
$command->expects($this->any())->method('getComposer')->willReturn($composer);
|
||||
$command->method('isInteractive')->willReturn(false);
|
||||
|
||||
$command->run($input, $output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue