protected function setUp() { parent::setUp(); $this->definition->expects($this->any())->method('getOptions')->will($this->returnValue(array(new InputOption('--verbose', '-v', InputOption::VALUE_NONE, 'Increase verbosity of messages.'), new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', 'dev'), new InputOption('--no-debug', null, InputOption::VALUE_NONE, 'Switches off debug mode.')))); $this->application->expects($this->once())->method('getHelperSet')->will($this->returnValue($this->helperSet)); $this->command = new ConsumerCommand(); $this->command->setApplication($this->application); }
protected function setUp() { parent::setUp(); $this->definition->expects($this->any())->method('getOptions')->will($this->returnValue(array(new InputOption('--no-confirmation', null, InputOption::VALUE_NONE, 'Switches off confirmation mode.')))); $this->application->expects($this->once())->method('getHelperSet')->will($this->returnValue($this->helperSet)); $this->command = new PurgeConsumerCommand(); $this->command->setApplication($this->application); }