// Cache existing commands so we don't have to ask again.
self::
$existingCommands[] =
$required_command;
} else { $unavailable[] =
$required_command;
} } } // Skip the test if there were some we couldn't find.
if (!
empty($unavailable)) { throw new SkippedTestError('Required external commands: ' .
implode(', ',
$unavailable));
} } /**
* Determine if an external command is available.
*
* @param $command
* The external command.
*
* @return bool
* TRUE if external command is available, else FALSE.
*/