You are here

class ClassRequiresAvailable in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php \Drupal\BuildTests\Framework\Tests\ClassRequiresAvailable

@requires externalCommand available_command

Hierarchy

Expanded class hierarchy of ClassRequiresAvailable

File

core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php, line 141

Namespace

Drupal\BuildTests\Framework\Tests
View source
class ClassRequiresAvailable {
  use ExternalCommandRequirementsTrait;
  protected static function externalCommandIsAvailable($command) {
    return in_array($command, [
      'available_command',
    ]);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ClassRequiresAvailable::externalCommandIsAvailable protected static function Determine if an external command is available. Overrides ExternalCommandRequirementsTrait::externalCommandIsAvailable
ExternalCommandRequirementsTrait::$existingCommands private static property A list of existing external commands we've already discovered.
ExternalCommandRequirementsTrait::checkClassCommandRequirements private static function Checks whether required external commands are available per test class.
ExternalCommandRequirementsTrait::checkExternalCommandRequirements private static function Checks missing external command requirements.
ExternalCommandRequirementsTrait::checkMethodCommandRequirements private static function Checks whether required external commands are available per method.