public function InstallerTest::testCustomInstallerName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php \Composer\Installers\Test\InstallerTest::testCustomInstallerName()
testCustomInstallerName
File
- vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ InstallerTest.php, line 344
Class
Namespace
Composer\Installers\TestCode
public function testCustomInstallerName() {
$installer = new Installer($this->io, $this->composer);
$package = new Package('shama/cakephp-ftp-plugin', '1.0.0', '1.0.0');
$package
->setType('cakephp-plugin');
$package
->setExtra(array(
'installer-name' => 'FTP',
));
$result = $installer
->getInstallPath($package);
$this
->assertEquals('Plugin/FTP/', $result);
}