Inheritance: extends Composer\Installer\LibraryInstaller
Esempio n. 1
0
 /**
  * testTypo3Inflection
  */
 public function testTypo3Inflection()
 {
     $installer = new Installer($this->io, $this->composer);
     $package = new Package('typo3/fluid', '1.0.0', '1.0.0');
     $package->setAutoload(array('psr-0' => array('TYPO3\\Fluid' => 'Classes')));
     $package->setType('typo3-flow-package');
     $result = $installer->getInstallPath($package);
     $this->assertEquals('Packages/Application/TYPO3.Fluid/', $result);
 }
Esempio n. 2
0
 /**
  * testNoVendorName
  */
 public function testNoVendorName()
 {
     $installer = new Installer($this->io, $this->composer);
     $package = new Package('sfPhpunitPlugin', '1.0.0', '1.0.0');
     $package->setType('symfony1-plugin');
     $result = $installer->getInstallPath($package);
     $this->assertEquals('plugins/sfPhpunitPlugin/', $result);
 }
 /**
  * testGetCakePHPInstallPathException
  *
  * @return void
  *
  * @expectedException \InvalidArgumentException
  */
 public function testGetCakePHPInstallPathException()
 {
     $installer = new Installer($this->io, $this->composer);
     $package = new Package('shama/ftp', '1.0.0', '1.0.0');
     $package->setType('cakephp-whoops');
     $result = $installer->getInstallPath($package);
 }