예제 #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();
 }
예제 #2
0
파일: Builder.php 프로젝트: elepunk/oven
 /**
  * @return mixed
  */
 protected function ignoreNamespace()
 {
     return $this->command->option('ignore-namespace');
 }