You are here

class PimcoreInstallerTest in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php \Composer\Installers\Test\PimcoreInstallerTest

Hierarchy

  • class \Composer\Installers\Test\TestCase extends \Composer\Installers\Test\PHPUnit_Framework_TestCase

Expanded class hierarchy of PimcoreInstallerTest

File

vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php, line 8

Namespace

Composer\Installers\Test
View source
class PimcoreInstallerTest extends TestCase {
  private $composer;
  private $io;

  /**
   * setUp
   *
   * @return void
   */
  public function setUp() {
    $this->package = new Package('CamelCased', '1.0', '1.0');
    $this->io = $this
      ->getMock('Composer\\IO\\PackageInterface');
    $this->composer = new Composer();
  }

  /**
   * testInflectPackageVars
   *
   * @return void
   */
  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',
    ));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PimcoreInstallerTest::$composer private property
PimcoreInstallerTest::$io private property
PimcoreInstallerTest::setUp public function setUp
PimcoreInstallerTest::testInflectPackageVars public function testInflectPackageVars
TestCase::$parser private static property
TestCase::ensureDirectoryExistsAndClear protected function
TestCase::getAliasPackage protected function
TestCase::getPackage protected function
TestCase::getVersionConstraint protected function
TestCase::getVersionParser protected static function