class PiwikInstallerTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/tests/Composer/Installers/Test/PiwikInstallerTest.php \Composer\Installers\Test\PiwikInstallerTest
Class PiwikInstallerTest
@package Composer\Installers\Test
Hierarchy
- class \Composer\Installers\Test\TestCase extends \Composer\Installers\Test\PHPUnit_Framework_TestCase
- class \Composer\Installers\Test\PiwikInstallerTest
Expanded class hierarchy of PiwikInstallerTest
File
- vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ PiwikInstallerTest.php, line 14
Namespace
Composer\Installers\TestView source
class PiwikInstallerTest extends TestCase {
/**
* @varComposer
*/
private $composer;
/**
* @var PackageInterface
*/
private $io;
/**
* @var Package
*/
private $package;
/**
* setUp
*
* @return void
*/
public function setUp() {
$this->package = new Package('VisitSummary', '1.0', '1.0');
$this->io = $this
->getMock('Composer\\IO\\PackageInterface');
$this->composer = new Composer();
}
/**
* testInflectPackageVars
*
* @return void
*/
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',
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PiwikInstallerTest:: |
private | property | @varComposer | |
PiwikInstallerTest:: |
private | property | ||
PiwikInstallerTest:: |
private | property | ||
PiwikInstallerTest:: |
public | function | setUp | |
PiwikInstallerTest:: |
public | function | testInflectPackageVars | |
TestCase:: |
private static | property | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected | function | ||
TestCase:: |
protected static | function |