public function PimcoreInstallerTest::testInflectPackageVars in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php \Composer\Installers\Test\PimcoreInstallerTest::testInflectPackageVars()
testInflectPackageVars
Return value
void
File
- vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ PimcoreInstallerTest.php, line 30
Class
Namespace
Composer\Installers\TestCode
public function testInflectPackageVars() {
$installer = new PimcoreInstaller($this->package, $this->composer);
$result = $installer
->inflectPackageVars(array(
'name' => 'CamelCased',
));
$this
->assertEquals($result, array(
'name' => 'CamelCased',
));
$installer = new PimcoreInstaller($this->package, $this->composer);
$result = $installer
->inflectPackageVars(array(
'name' => 'with-dash',
));
$this
->assertEquals($result, array(
'name' => 'WithDash',
));
$installer = new PimcoreInstaller($this->package, $this->composer);
$result = $installer
->inflectPackageVars(array(
'name' => 'with_underscore',
));
$this
->assertEquals($result, array(
'name' => 'WithUnderscore',
));
}