class PimcoreInstallerTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
- class \Composer\Installers\Test\PimcoreInstallerTest
Expanded class hierarchy of PimcoreInstallerTest
File
- vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ PimcoreInstallerTest.php, line 8
Namespace
Composer\Installers\TestView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PimcoreInstallerTest:: |
private | property | ||
PimcoreInstallerTest:: |
private | property | ||
PimcoreInstallerTest:: |
public | function | setUp | |
PimcoreInstallerTest:: |
public | function | testInflectPackageVars | |
TestCase:: |
private static | property | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected static | function |