function it_runs_a_command(CommandInvoker $commandInvoker) { $name = 'walk_in_a_silly_way'; $input = array(); $commandInvoker->run($name, $input)->shouldBeCalled(); $this->run($name, $input); }
/** * 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); }