Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 /**
  * @return mixed
  */
 protected function ignoreNamespace()
 {
     return $this->command->option('ignore-namespace');
 }