public function PiwikInstallerTest::testInflectPackageVars in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/tests/Composer/Installers/Test/PiwikInstallerTest.php \Composer\Installers\Test\PiwikInstallerTest::testInflectPackageVars()
testInflectPackageVars
Return value
void
File
- vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ PiwikInstallerTest.php, line 48
Class
- PiwikInstallerTest
- Class PiwikInstallerTest
Namespace
Composer\Installers\TestCode
public function testInflectPackageVars() {
$installer = new PiwikInstaller($this->package, $this->composer);
$result = $installer
->inflectPackageVars(array(
'name' => 'VisitSummary',
));
$this
->assertEquals($result, array(
'name' => 'VisitSummary',
));
$installer = new PiwikInstaller($this->package, $this->composer);
$result = $installer
->inflectPackageVars(array(
'name' => 'visit-summary',
));
$this
->assertEquals($result, array(
'name' => 'VisitSummary',
));
$installer = new PiwikInstaller($this->package, $this->composer);
$result = $installer
->inflectPackageVars(array(
'name' => 'visit_summary',
));
$this
->assertEquals($result, array(
'name' => 'VisitSummary',
));
}