protected getCommand ( |
||
$config | ||
$option | ||
Результат | boolean | string |
protected function getCommand(Config $config, $option)
{
$type = $config->type;
switch ($type) {
case 'magento':
return "cd /var/www;bin/behat {$option}";
break;
case 'magento2':
return "cd /var/www/public;bin/behat {$option}";
break;
}
return false;
}