Пример #1
0
 public function testFireMethod()
 {
     $command = new ConfigureCommand();
     $mockInput = m::mock('Symfony\\Component\\Console\\Input\\InputInterface');
     $mockOutput = m::mock('Symfony\\Component\\Console\\Ouput\\OutputInterface');
     $command->input = $mockInput;
     $command->output = $mockOutput;
     $mockInput->shouldReceive('getArgument')->once();
     $mockOutput->shouldReceive('write')->once();
     $command->fire();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function run()
 {
     $recipePath = $this->command->argument('path');
     $this->configurator->setup($recipePath);
     $this->command->say('info', "Your recipe path is now set to {$recipePath}");
 }