public function testFireMethod() { $command = new BakeCommand(); $mockInput = m::mock('Symfony\\Component\\Console\\Input\\InputInterface'); $mockOutput = m::mock('Symfony\\Component\\Console\\Ouput\\OutputInterface'); $command->input = $mockInput; $command->output = $mockOutput; $mockInput->shouldReceive('getOption')->once(); $mockInput->shouldReceive('getArgument')->once(); $command->fire(); }
/** * @return mixed */ protected function ignoreNamespace() { return $this->command->option('ignore-namespace'); }