Created
November 12, 2016 16:44
-
-
Save elmpp/0f760a99338f4e016373356f5b2c8493 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* $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