protected function executeProtoc($input, $class, $proto)
{
$path = __DIR__ . '/Resources';
$command = "echo '{$input}' | protoc --encode={$class} -I{$path} {$path}/{$proto}.proto";
$output = null;
$exitCode = null;
exec($command, $output, $exitCode);
if ($exitCode !== 0) {
$this->fail("Fail to run protoc : [{$command}]");
}
return implode(PHP_EOL, $output);
}