protected static function ClassRequiresAvailable::externalCommandIsAvailable in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php \Drupal\BuildTests\Framework\Tests\ClassRequiresAvailable::externalCommandIsAvailable()
Determine if an external command is available.
Parameters
$command: The external command.
Return value
bool TRUE if external command is available, else FALSE.
Overrides ExternalCommandRequirementsTrait::externalCommandIsAvailable
File
- core/
tests/ Drupal/ BuildTests/ Framework/ Tests/ ExternalCommandRequirementTest.php, line 145
Class
- ClassRequiresAvailable
- @requires externalCommand available_command
Namespace
Drupal\BuildTests\Framework\TestsCode
protected static function externalCommandIsAvailable($command) {
return in_array($command, [
'available_command',
]);
}