You are here

public function PiwikInstallerTest::testInflectPackageVars in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Test

Code

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',
  ));
}