You are here

public function InstallerTest::testInstallPath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php \Composer\Installers\Test\InstallerTest::testInstallPath()

testInstallPath

@dataProvider dataForTestInstallPath

File

vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php, line 184

Class

InstallerTest

Namespace

Composer\Installers\Test

Code

public function testInstallPath($type, $path, $name, $version = '1.0.0') {
  $installer = new Installer($this->io, $this->composer);
  $package = new Package($name, $version, $version);
  $package
    ->setType($type);
  $result = $installer
    ->getInstallPath($package);
  $this
    ->assertEquals($path, $result);
}