Ejemplo n.º 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();
 }