1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

add isProxyCommand() to BaseCommand

This commit is contained in:
Bilal Amarni 2016-05-03 08:26:14 +02:00 committed by Jordi Boggiano
parent d07b4e0f3e
commit 92207da83a
5 changed files with 51 additions and 14 deletions

View file

@ -25,6 +25,11 @@ class ApplicationTest extends TestCase
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
$inputMock->expects($this->once())
->method('hasParameterOption')
->with($this->equalTo('--no-plugins'))
->will($this->returnValue(true));
$inputMock->expects($this->once())
->method('getFirstArgument')
->will($this->returnValue('list'));