Пример #1
0
 function it_runs_a_command(CommandInvoker $commandInvoker)
 {
     $name = 'walk_in_a_silly_way';
     $input = array();
     $commandInvoker->run($name, $input)->shouldBeCalled();
     $this->run($name, $input);
 }
Пример #2
0
 /**
  * Provides access to the CommandInvoker.
  *
  * @param string $name
  * @param array  $input
  *
  * @throws \Gnugat\Redaktilo\Exception\CommandNotFoundException If the command isn't found in the CommandInvoker
  *
  * @api
  */
 public function run($name, array $input)
 {
     $this->commandInvoker->run($name, $input);
 }