Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* $args example:
* array(3) {
[0]=>
string(15) "wiremock:record"
["feed"]=>
string(5) "CORAL"
["background"]=>
bool(true)
}
*
* @param $task
* @param array $args
* @return int
*/
protected function runRoboTask($task, $args = []) {
$runner = new \Robo\Runner();
$inputArr = array_merge([
0 => $task,
],
$args
);
$input = new ArrayInput($inputArr);
$output = $this->getOutput();
return $runner->run($input, $this->getOutput());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment