コード例 #1
0
 public function testDefaults()
 {
     $options = new Options(array('magento-root-dir' => '/'));
     $this->assertTrue($options->appendToGitIgnore());
     $this->assertSame("", $options->getMagentoRootDir());
     $this->assertSame(array(".git"), $options->getDeployExcludes());
     $this->assertInternalType('array', $options->getIgnoreDirectories());
 }
コード例 #2
0
 /**
  * @param Options $options
  */
 public function getInstaller(Options $options)
 {
     $exclude = new Exclude($options->getDeployExcludes());
     $gitIgnore = new GitIgnore(sprintf("%s/.gitignore", $options->getMagentoRootDir()), $options->getIgnoreDirectories(), $options->appendToGitIgnore());
     $installer = new CoreInstaller($exclude, $gitIgnore, $this->filesystem);
     return $installer;
 }