function FixturesBase::binFixtureDir

Gets the path to one particular bin path.

Parameters

string $bin_name: The bin name to get the path for.

Return value

string Path to project fixture.

File

core/tests/Drupal/Tests/Composer/Plugin/FixturesBase.php, line 131

Class

FixturesBase
Base class for fixtures to test composer plugins.

Namespace

Drupal\Tests\Composer\Plugin

Code

public function binFixtureDir(string $bin_name) : string {
    $dir = $this->allFixturesDir() . '/scripts/' . $bin_name;
    if (!is_dir($dir)) {
        throw new \RuntimeException("Requested fixture bin dir {$bin_name} that does not exist.");
    }
    return $dir;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.