Файл: vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php
Строк: 41
<?php
namespace ComposerInstallersTest;
use ComposerInstallersPimcoreInstaller;
use ComposerPackagePackage;
use ComposerComposer;
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('ComposerIOPackageInterface');
$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'));
}
}