ConsoleKit\Tests\TestCommand::execute PHP Method

execute() public method

public execute ( array $args, array $opts = [] )
$args array
$opts array
    public function execute(array $args, array $opts = array())
    {
        $name = 'unknown';
        if (!empty($args)) {
            $name = implode(' ', $args);
        } else {
            if (isset($opts['name'])) {
                $name = $opts['name'];
            }
        }
        $this->writeln(sprintf("hello %s!", $name));
    }
TestCommand